Skip to content

Fix minor robustness issues from code audit#25

Merged
Lucenx9 merged 1 commit intomainfrom
fix/minor-robustness-improvements
Mar 8, 2026
Merged

Fix minor robustness issues from code audit#25
Lucenx9 merged 1 commit intomainfrom
fix/minor-robustness-improvements

Conversation

@Lucenx9
Copy link
Owner

@Lucenx9 Lucenx9 commented Mar 8, 2026

Summary

  • Guard go.mod version parsing in _project_detect.py against malformed lines that lack a version field (prevents IndexError on split())
  • Replace assert expected is not None with an explicit error return in _sync.py:_sync_single_router() so the safety check isn't stripped by python -O

Test plan

  • All 174 existing tests pass
  • Ruff lint and format clean

🤖 Generated with Claude Code

- Guard go.mod version parsing against malformed lines missing a version
  field (IndexError on split)
- Replace assert with explicit error return in _sync_single_router so the
  check is not stripped by python -O

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Lucenx9 Lucenx9 merged commit bd3d145 into main Mar 8, 2026
22 checks passed
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.

1 participant