mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 16:54:02 +02:00
fix try except in get_session function not reraising exception
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user