KERNEL: use python 2.3 format_exception
bzr revid: ced-55c0c6a6a649faa6488447f6db42175131f4af2d
This commit is contained in:
+2
-2
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user