Commit b535bddc authored by Yoshinori Okuji's avatar Yoshinori Okuji

Print a log when an uncatched exception happens.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5dd9ff8d
...@@ -277,6 +277,9 @@ class SQLDict(RAMDict): ...@@ -277,6 +277,9 @@ class SQLDict(RAMDict):
else: else:
get_transaction().abort() get_transaction().abort()
except: except:
LOG('SQLDict', ERROR,
'an uncatched exception happened during processing %r' % (uid_list_list,),
error=sys.exc_info())
# If an exception occurs, abort the transaction to minimize the impact, # If an exception occurs, abort the transaction to minimize the impact,
try: try:
get_transaction().abort() get_transaction().abort()
......
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