diff options
author | martin f. krafft <madduck@madduck.net> | 2008-03-16 12:03:26 +0100 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-17 17:16:46 -0400 |
commit | aaea01b924a7512cb873b733e6a1b15fb3c8ed17 (patch) | |
tree | ef57163eabe1cabe5ba6153a860efa43f4f9236d | |
parent | a2463a812bf33bb22114a5fa1b12519e33fa01b0 (diff) |
Print traceback for unhandled exceptions
(cherry picked from commit 10574a324e03cd0533e77f46ead6e4c6a6e5568f)
-rw-r--r-- | plugins/proxy.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/proxy.py b/plugins/proxy.py index 582010c9a..e6635e752 100644 --- a/plugins/proxy.py +++ b/plugins/proxy.py @@ -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) |