Author: tack
Date: Sat Jun 30 18:24:23 2007
New Revision: 2754

Modified:
   trunk/base/src/notifier/async.py

Log:
Don't break when internal _exc_info isn't set on async exception.


Modified: trunk/base/src/notifier/async.py
==============================================================================
--- trunk/base/src/notifier/async.py    (original)
+++ trunk/base/src/notifier/async.py    Sat Jun 30 18:24:23 2007
@@ -82,7 +82,13 @@
         done because it raised an exception.
         """
         if self.exception_handler.count() == 0:
-            trace = ''.join(traceback.format_exception(*e._exc_info))
+            if hasattr(e, '_exc_info'):
+                # Exception info set internally, so display traceback from 
that.
+                trace = ''.join(traceback.format_exception(*e._exc_info))
+            else:
+                # No traceback set explicitly
+                trace = '%s [no traceback available]' % repr(e)
+
             log.error('*** InProgress exception not handled ***\n%s', trace)
         # store result
         self.is_finished = True

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to