Skip to content

Commit 9294f6b

Browse files
fix typecheck
1 parent 7346f8a commit 9294f6b

File tree

1 file changed

+6
-6
lines changed
  • services/api-server/src/simcore_service_api_server/exceptions/handlers

1 file changed

+6
-6
lines changed

services/api-server/src/simcore_service_api_server/exceptions/handlers/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919

2020
def setup(app: FastAPI, *, is_debug: bool = False):
21-
app.add_exception_handler(HTTPException, http_exception_handler)
22-
app.add_exception_handler(HttpxException, handle_httpx_client_exceptions)
23-
app.add_exception_handler(RequestValidationError, http422_error_handler)
24-
app.add_exception_handler(LogStreamingBaseError, log_handling_error_handler)
25-
app.add_exception_handler(CustomBaseError, custom_error_handler)
26-
app.add_exception_handler(BaseBackEndError, backend_error_handler)
21+
app.add_exception_handler(HTTPException, http_exception_handler) # type: ignore[arg-type]
22+
app.add_exception_handler(HttpxException, handle_httpx_client_exceptions) # type: ignore[arg-type]
23+
app.add_exception_handler(RequestValidationError, http422_error_handler) # type: ignore[arg-type]
24+
app.add_exception_handler(LogStreamingBaseError, log_handling_error_handler) # type: ignore[arg-type]
25+
app.add_exception_handler(CustomBaseError, custom_error_handler) # type: ignore[arg-type]
26+
app.add_exception_handler(BaseBackEndError, backend_error_handler) # type: ignore[arg-type]
2727

2828
# SEE https://docs.python.org/3/library/exceptions.html#exception-hierarchy
2929
app.add_exception_handler(

0 commit comments

Comments
 (0)