Skip to content

Commit 15cf699

Browse files
committed
rm unused exceptions and models using aiopg
1 parent 57e08e5 commit 15cf699

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

services/web/server/src/simcore_service_webserver/garbage_collector/_core_guests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from models_library.users import UserID, UserNameID
99
from redis.asyncio import Redis
1010
from servicelib.common_headers import UNDEFINED_DEFAULT_SIMCORE_USER_AGENT_VALUE
11-
from simcore_postgres_database.aiopg_errors import DatabaseError
1211
from simcore_postgres_database.models.users import UserRole
1312

1413
from ..projects._projects_repository_legacy import ProjectDBAPI
@@ -162,7 +161,6 @@ async def remove_guest_user_with_all_its_resources(
162161
await users_service.delete_user_without_projects(app, user_id=user_id)
163162

164163
except (
165-
DatabaseError,
166164
asyncpg.exceptions.PostgresError,
167165
ProjectNotFoundError,
168166
UserNotFoundError,

services/web/server/src/simcore_service_webserver/garbage_collector/_core_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ async def replace_current_owner(
137137
)
138138

139139
except (
140-
DatabaseError,
141140
asyncpg.exceptions.PostgresError,
142141
ProjectNotFoundError,
143142
UserNotFoundError,

services/web/server/src/simcore_service_webserver/projects/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from enum import Enum
33
from typing import Any, TypeAlias
44

5-
from aiopg.sa.result import RowProxy
65
from common_library.dict_tools import remap_keys
76
from models_library.api_schemas_webserver.projects import ProjectPatch
87
from models_library.api_schemas_webserver.projects_ui import StudyUI
@@ -19,7 +18,6 @@
1918
from simcore_postgres_database.models.projects import ProjectTemplateType, ProjectType
2019

2120
ProjectDict: TypeAlias = dict[str, Any]
22-
ProjectProxy: TypeAlias = RowProxy
2321

2422

2523
class ProjectTypeAPI(str, Enum):

0 commit comments

Comments
 (0)