Skip to content

Commit

Permalink
python: apply a format in app_handlers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoto7250 committed Dec 4, 2024
1 parent f4aa7fc commit eda7f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/python/app/app_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def get_latest_ride_status(conn: Connection, ride_id: str) -> str:
).scalar()

if status is None:
raise HTTPException(status_code=HTTPStatus.INTERNAL_SERVER_ERROR, detail="no rows in result set")
raise HTTPException(
status_code=HTTPStatus.INTERNAL_SERVER_ERROR, detail="no rows in result set"
)

assert isinstance(status, str)
return status
Expand Down

0 comments on commit eda7f54

Please sign in to comment.