Log the exception before rolling back.

This commit is contained in:
voussoir 2020-09-14 20:25:24 -07:00
parent 5d40622b76
commit 5b4cc5bf9c

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