Log the exception before rolling back.

master
voussoir 2020-09-14 20:25:24 -07:00
parent 5d40622b76
commit 5b4cc5bf9c
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ def transaction(method):
try:
result = method(self, *args, **kwargs)
except Exception as e:
photodb.log.debug(e)
photodb.rollback(savepoint=savepoint_id)
raise