From 47df1413ae42b4525fe60e2d8d7702f94a725ed4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 16 Oct 2012 14:46:30 +0200 Subject: [PATCH] use %r instead of %s to prevent encoding errors --- 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 4151ffc6..e283b03c 100644 --- a/weboob/core/bcall.py +++ b/weboob/core/bcall.py @@ -34,7 +34,7 @@ __all__ = ['BackendsCall', 'CallErrors', 'IResultsCondition', 'ResultsConditionE class CallErrors(Exception): def __init__(self, errors): msg = 'Errors during backend calls:\n' + \ - '\n'.join(['Module(%s): %s\n%s\n' % (backend, error, backtrace) + '\n'.join(['Module(%r): %r\n%r\n' % (backend, error, backtrace) for backend, error, backtrace in errors]) Exception.__init__(self, msg)