From df9341b64c4b181cb89796eaac0db6c721133ebd Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Wed, 2 Jun 2010 17:46:40 +0200 Subject: [PATCH] add more explicit message on debug --- weboob/bcall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/bcall.py b/weboob/bcall.py index 991b1e42..2c209b8c 100644 --- a/weboob/bcall.py +++ b/weboob/bcall.py @@ -28,7 +28,8 @@ __all__ = ['BackendsCall', 'CallErrors'] class CallErrors(Exception): def __init__(self, errors): - Exception.__init__(self, u'These errors have been raised in backend threads:\n%s' % ( + 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, error, backtrace + '\n' if logging.root.level == logging.DEBUG else '')) for backend, error, backtrace in errors)))