From e1939b7e4ae643133cfc131d3e5557a3e47513ab Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 13 Jul 2010 00:10:13 +0200 Subject: [PATCH] fix when backtrace contains some unicode chars (and because python sucks) --- weboob/core/bcall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/core/bcall.py b/weboob/core/bcall.py index 98cab8dd..28fd0c35 100644 --- a/weboob/core/bcall.py +++ b/weboob/core/bcall.py @@ -32,7 +32,7 @@ class CallErrors(Exception): def __init__(self, errors): Exception.__init__(self, u'These errors have been raised in backend threads '\ '(use --debug option to print backtraces):\n%s' % ( - u'\n'.join((u' * %s: %s%s' % (backend, repr(error), backtrace + '\n' + u'\n'.join((u' * %s: %s%s' % (backend, repr(error), backtrace.decode('utf-8') + '\n' if logging.root.level == logging.DEBUG else '')) for backend, error, backtrace in errors))) self.errors = copy(errors)