KERNEL: fix for compatibility with python2.3
bzr revid: ced-5018cb134ef8e707946aa014f6115488f8c233b3
This commit is contained in:
parent
ed25abf408
commit
c699c3c54f
|
@ -211,7 +211,7 @@ class GenericXMLRPCRequestHandler:
|
||||||
return r
|
return r
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
logger = Logger()
|
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)
|
s=str(e)
|
||||||
import tools
|
import tools
|
||||||
if tools.config['debug_mode']:
|
if tools.config['debug_mode']:
|
||||||
|
@ -311,7 +311,7 @@ class TinySocketClientThread(threading.Thread):
|
||||||
ts.mysend(result)
|
ts.mysend(result)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger = Logger()
|
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)
|
s=str(e)
|
||||||
import tools
|
import tools
|
||||||
if tools.config['debug_mode']:
|
if tools.config['debug_mode']:
|
||||||
|
|
Loading…
Reference in New Issue