Print traceback for unhandled exceptions

(cherry picked from commit 10574a324e03cd0533e77f46ead6e4c6a6e5568f)
master
martin f. krafft 2008-03-16 12:03:26 +01:00 committed by Joey Hess
parent a2463a812b
commit aaea01b924
1 changed files with 4 additions and 1 deletions

View File

@ -171,5 +171,8 @@ class IkiWikiProcedureProxy(object):
return
time.sleep(LOOP_DELAY)
except Exception, e:
self._debug_fn('uncaught exception: %s' % e)
print >>sys.stderr, 'uncaught exception: %s' % e
import traceback
print >>sys.stderr, traceback.format_exc(sys.exc_info()[2])
import posix
sys.exit(posix.EX_SOFTWARE)