Merge pull request 'fix: raise HTTPException in recalculate_standings on failure (#23)' (#41) from ai/major-domo-database-23 into main
All checks were successful
Build Docker Image / build (push) Successful in 50s

Reviewed-on: #41
This commit is contained in:
cal 2026-03-03 03:47:29 +00:00
commit ddf5f77da4

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}'