[Erp5-report] r24101 - /erp5/trunk/products/CMFActivity/ActivityTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 8 14:56:57 CEST 2008


Author: vincent
Date: Wed Oct  8 14:56:48 2008
New Revision: 24101

URL: http://svn.erp5.org?rev=24101&view=rev
Log:
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...

Modified:
    erp5/trunk/products/CMFActivity/ActivityTool.py

Modified: erp5/trunk/products/CMFActivity/ActivityTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?rev=24101&r1=24100&r2=24101&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/ActivityTool.py (original)
+++ erp5/trunk/products/CMFActivity/ActivityTool.py Wed Oct  8 14:56:48 2008
@@ -358,7 +358,7 @@
         # 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]))




More information about the Erp5-report mailing list