From 0dd1f150110ba7329e8815955383f6453fb03907 Mon Sep 17 00:00:00 2001 From: grillazz Date: Fri, 18 Mar 2022 08:18:55 +0100 Subject: [PATCH] missing await --- the_app/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the_app/database.py b/the_app/database.py index 8a715e0..3186318 100644 --- a/the_app/database.py +++ b/the_app/database.py @@ -31,7 +31,7 @@ async def get_db() -> AsyncGenerator: await session.rollback() raise sql_ex except HTTPException as http_ex: - session.rollback() + await session.rollback() raise http_ex finally: await session.close()