Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions issue/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,10 @@ def task_harvest_and_load_issue(

if issue:
logger.info(f"Successfully loaded issue {issue}")
return issue.id
else:
logger.warning(f"Failed to load issue {code} from {url}")

Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

The else branch should explicitly return None to maintain consistent return behavior. When the issue fails to load, the function currently has no return statement, which implicitly returns None but makes the control flow less clear. Consider adding return None after the warning log.

Suggested change
return None

Copilot uses AI. Check for mistakes.
return issue

except Exception as e:
exc_type, exc_value, exc_traceback = sys.exc_info()
UnexpectedEvent.create(
Expand Down
Loading