From: ced <> Date: Mon, 26 Mar 2007 06:51:54 +0000 (+0000) Subject: KERNEL: use python 2.3 format_exception X-Git-Tag: 5.0.0-alpha-addons~2594 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=45674fbabeee87a1f2ebdef5fd38628addc27b03;p=odoo%2Fodoo.git KERNEL: use python 2.3 format_exception bzr revid: ced-55c0c6a6a649faa6488447f6db42175131f4af2d --- diff --git a/bin/netsvc.py b/bin/netsvc.py index 872b3f4..e018997 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -208,7 +208,7 @@ class GenericXMLRPCRequestHandler: return r except Exception,e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exc())) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))) s=str(e) import tools if tools.config['debug_mode']: @@ -304,7 +304,7 @@ class TinySocketClientThread(threading.Thread): ts.mysend(r) except Exception, e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exc())) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))) s=str(e) import tools if tools.config['debug_mode']: