From 54c8abd7000466203b56eb579cfd784d5a4bd650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 15 May 2008 23:01:27 +0200 Subject: [PATCH] Standardize backtrace to be used in roundup --- trytond/netsvc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trytond/netsvc.py b/trytond/netsvc.py index 15c0653ac5..e15b522bca 100644 --- a/trytond/netsvc.py +++ b/trytond/netsvc.py @@ -175,6 +175,8 @@ class GenericXMLRPCRequestHandler: except Exception, exp: tb_s = reduce(lambda x, y: x+y, traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback)) + for path in sys.path: + tb_s = tb_s.replace(path, '') if CONFIG['debug_mode']: import pdb traceb = sys.exc_info()[2] @@ -349,6 +351,8 @@ class TinySocketClientThread(threading.Thread): tb_s = reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) + for path in sys.path: + tb_s = tb_s.replace(path, '') if CONFIG['debug_mode']: import pdb tback = sys.exc_info()[2]