fix try except in get_session function not reraising exception

This commit is contained in:
maxDorninger
2025-06-24 19:26:30 +02:00
parent 61d88a25ac
commit 0f62df8e14

View File

@@ -46,6 +46,7 @@ def get_session() -> Generator[Session, Any, None]:
except Exception as e:
db.rollback()
log.critical(f"error occurred: {e}")
raise e
finally:
db.close()