Skip to content

return early with a log message if badges model HTTP request has an error#321

Merged
cdolfi merged 1 commit into
mainfrom
fix/badges_model_nonetype
May 19, 2026
Merged

return early with a log message if badges model HTTP request has an error#321
cdolfi merged 1 commit into
mainfrom
fix/badges_model_nonetype

Conversation

@MoralCode
Copy link
Copy Markdown
Contributor

@MoralCode MoralCode commented May 18, 2026

Description
This needs a larger refactor at a later time, this is just a small improvement to prevent a crash when data cannot be found by adding a simple none check that skips the problematic code with a return call.

This PR substantially reduces the priority level of #318

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

… found

This needs a larger refactor at a later time, this is just a small improvement to prevent a crash when data cannot be found.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Comment thread collectoss/tasks/github/repo_info/core.py
Copy link
Copy Markdown
Contributor

@cdolfi cdolfi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, should this pr still close #318 with what you pointed out in that issue?

@MoralCode
Copy link
Copy Markdown
Contributor Author

I guess not, This pr effectively just drops the priority of that issue from a "its causing a crash" to a "lets fix this tech debt when we get around to it"

@cdolfi cdolfi merged commit 6e990c2 into main May 19, 2026
15 of 16 checks passed
@cdolfi cdolfi deleted the fix/badges_model_nonetype branch May 19, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants