fix: raise HTTPException in recalculate_standings on failure (#23)
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m2s
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:
parent
a0d27031b4
commit
4b288c1e67
@ -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}'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user