fix: raise HTTPException in recalculate_standings on failure (#23)
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m2s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-02 19:36:24 -06:00 committed by cal
parent a0d27031b4
commit 4b288c1e67

View File

@ -121,5 +121,5 @@ async def recalculate_standings(season: int, token: str = Depends(oauth2_scheme)
code = Standings.recalculate(season)
db.close()
if code == 69:
HTTPException(status_code=500, detail=f'Error recreating Standings rows')
raise HTTPException(status_code=500, detail=f'Error recreating Standings rows')
return f'Just recalculated standings for season {season}'