Skip to content

Commit 9467860

Browse files
committed
♻️ Refactor: replace PostgresError with DBAPIError in exception handlers
1 parent 0b26af2 commit 9467860

File tree

1 file changed

+2
-2
lines changed
  • services/storage/src/simcore_service_storage/exceptions

1 file changed

+2
-2
lines changed

services/storage/src/simcore_service_storage/exceptions/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import logging
22

3-
from asyncpg.exceptions import PostgresError
43
from aws_library.s3 import S3AccessError, S3KeyNotFoundError
54
from fastapi import FastAPI, status
65
from servicelib.fastapi.http_error import (
76
make_http_error_handler_for_exception,
87
set_app_default_http_error_handlers,
98
)
9+
from sqlalchemy.exc import DBAPIError
1010

1111
from ..modules.datcore_adapter.datcore_adapter_exceptions import (
1212
DatcoreAdapterFileNotFoundError,
@@ -70,7 +70,7 @@ def set_exception_handlers(app: FastAPI) -> None:
7070
),
7171
)
7272
for exc_3rd_party in (
73-
PostgresError,
73+
DBAPIError,
7474
S3AccessError,
7575
):
7676
app.add_exception_handler(

0 commit comments

Comments
 (0)