From bf5072b73c396692baeee32b020afa1deb6c40fe Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 12 Jul 2010 09:19:57 +0200 Subject: [PATCH] fix debug notice to display repr of returned object (fix crash when result is a binary string) --- 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 c44b015a..98cab8dd 100644 --- a/weboob/core/bcall.py +++ b/weboob/core/bcall.py @@ -97,7 +97,7 @@ class BackendsCall(object): except Exception, error: self._store_error(backend, error) else: - debug('%s: Called function %s returned: "%s"' % (backend, function, result)) + debug('%s: Called function %s returned: %r' % (backend, function, result)) if hasattr(result, '__iter__'): # Loop on iterator