Log the exception before rolling back.
This commit is contained in:
parent
5d40622b76
commit
5b4cc5bf9c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue