mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
missing await
This commit is contained in:
@@ -31,7 +31,7 @@ async def get_db() -> AsyncGenerator:
|
|||||||
await session.rollback()
|
await session.rollback()
|
||||||
raise sql_ex
|
raise sql_ex
|
||||||
except HTTPException as http_ex:
|
except HTTPException as http_ex:
|
||||||
session.rollback()
|
await session.rollback()
|
||||||
raise http_ex
|
raise http_ex
|
||||||
finally:
|
finally:
|
||||||
await session.close()
|
await session.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user