From c699c3c54f716ecb87b74799e079d59f65473446 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 8 Mar 2007 20:11:50 +0000 Subject: [PATCH] KERNEL: fix for compatibility with python2.3 bzr revid: ced-5018cb134ef8e707946aa014f6115488f8c233b3 --- bin/netsvc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/netsvc.py b/bin/netsvc.py index c457097966c..84bdb6def95 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -211,7 +211,7 @@ class GenericXMLRPCRequestHandler: return r except Exception,e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exc()) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) s=str(e) import tools if tools.config['debug_mode']: @@ -311,7 +311,7 @@ class TinySocketClientThread(threading.Thread): ts.mysend(result) except Exception, e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exc()) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) s=str(e) import tools if tools.config['debug_mode']: