wip: add exception handler

This commit is contained in:
grillazz
2025-08-23 18:22:51 +02:00
parent 69f3dc3fd8
commit 58553c6d63
4 changed files with 11 additions and 10 deletions

View File

@@ -25,7 +25,6 @@ class Base(DeclarativeBase):
await db_session.refresh(self)
return self
async def delete(self, db_session: AsyncSession):
try:
await db_session.delete(self)
@@ -58,4 +57,3 @@ class Base(DeclarativeBase):
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail=repr(exception),
) from exception