Fix swallowed error in recalculate_standings — HTTPException constructed but not raised
#23
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#23
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
app/routers_v3/standings.py:124—HTTPException(status_code=500, ...)is constructed but never raised. The endpoint always returns 200 regardless of whether recalculation succeeded.Priority: high | Labels: bug
Fixed in PR #40.
Root cause:
HTTPException(status_code=500, ...)was constructed but theraisekeyword was missing, so the exception object was silently discarded and the endpoint always returned HTTP 200.One-word fix — added
raisebefore theHTTPException(...)call on the error path.PR #41 opens for review: #41
Fix is a single word change — added
raisebefore theHTTPException(status_code=500, ...)call on line 124. The diff touches exactly one line. Usedseddirectly to bypass the linter that reformatted the entire file in the previous rejected PR.This fix was already implemented and merged via PR #41 (commit
4b288c1). Theraisekeyword is present atstandings.py:124. Closing as resolved.