Commit 0a30278c authored by Vincent Pelletier's avatar Vincent Pelletier

Fix case where there is no exception: error_log.raising raises given exc_info...

Fix case where there is no exception: error_log.raising raises given exc_info if it's a tuple, to make it latest exception and let python logging module get it by itself. But this attemp causes another error if excpetion is None (!), which in turn hides original exception...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24101 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1e019b8
......@@ -358,7 +358,7 @@ Exception: %s %s
# push the error in ZODB error_log
error_log = getattr(context, 'error_log', None)
if error_log is not None:
error_log.raising(exc_info)
error_log.raising(1)
if exc_info == (None, None, None):
if format_list is not None:
self.traceback = ''.join(format_list(extract_stack()[:-1]))
......
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