Skip to content

Commit

Permalink
quality: Code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Oct 10, 2024
1 parent 73fd7b6 commit 2331565
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,9 @@ async def _training_callback(_call: CallStateModel) -> None:

@api.exception_handler(StarletteHTTPException)
async def http_exception_handler(
request: Request, exc: StarletteHTTPException
) -> JSONResponse: # noqa: ARG001
request: Request, # noqa: ARG001
exc: StarletteHTTPException,
) -> JSONResponse:
"""
Handle HTTP exceptions and return the error in a standard format.
"""
Expand All @@ -841,8 +842,9 @@ async def http_exception_handler(

@api.exception_handler(RequestValidationError)
async def validation_exception_handler(
request: Request, exc: RequestValidationError
) -> JSONResponse: # noqa: ARG001
request: Request, # noqa: ARG001
exc: RequestValidationError,
) -> JSONResponse:
"""
Handle validation exceptions and return the error in a standard format.
"""
Expand Down

0 comments on commit 2331565

Please sign in to comment.