We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd1512 commit 4cc010dCopy full SHA for 4cc010d
services/storage/src/simcore_service_storage/exceptions/handlers.py
@@ -1,12 +1,12 @@
1
import logging
2
3
-from asyncpg.exceptions import PostgresError
4
from aws_library.s3 import S3AccessError, S3KeyNotFoundError
5
from fastapi import FastAPI, status
6
from servicelib.fastapi.http_error import (
7
make_http_error_handler_for_exception,
8
set_app_default_http_error_handlers,
9
)
+from sqlalchemy.exc import DBAPIError
10
11
from ..modules.datcore_adapter.datcore_adapter_exceptions import (
12
DatcoreAdapterFileNotFoundError,
@@ -70,7 +70,7 @@ def set_exception_handlers(app: FastAPI) -> None:
70
),
71
72
for exc_3rd_party in (
73
- PostgresError,
+ DBAPIError,
74
S3AccessError,
75
):
76
app.add_exception_handler(
0 commit comments