File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
services/api-server/src/simcore_service_api_server/exceptions/handlers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1818
1919
2020def 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 (
You can’t perform that action at this time.
0 commit comments