From aaea01b924a7512cb873b733e6a1b15fb3c8ed17 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 16 Mar 2008 12:03:26 +0100 Subject: Print traceback for unhandled exceptions (cherry picked from commit 10574a324e03cd0533e77f46ead6e4c6a6e5568f) --- plugins/proxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') 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) -- cgit v1.2.3