Print traceback for unhandled exceptions
(cherry picked from commit 10574a324e03cd0533e77f46ead6e4c6a6e5568f)master
parent
a2463a812b
commit
aaea01b924
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue