Commit 57071fe4 authored by Sebastien Robin's avatar Sebastien Robin

do not fail silently, this is a nightmare to debug

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17450 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d70f435
...@@ -123,6 +123,8 @@ class SQLQueue(RAMQueue): ...@@ -123,6 +123,8 @@ class SQLQueue(RAMQueue):
get_transaction().commit() # If successful, commit get_transaction().commit() # If successful, commit
except: except:
# If an exception occurs, abort the transaction to minimize the impact, # If an exception occurs, abort the transaction to minimize the impact,
LOG('SQLQueue', WARNING, 'Could not evaluate %s on %s' % (m.method_id, path),
error=sys.exc_info())
try: try:
abortTransactionSynchronously() abortTransactionSynchronously()
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment