mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
missing await
This commit is contained in:
parent
35f56f2f08
commit
0dd1f15011
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user