From 5d33778986427a74473b516778419dcecd568c16 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 17 Jul 2010 13:13:44 +0200 Subject: [PATCH] don't iterate on strings --- 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 28fd0c35..e74b96e1 100644 --- a/weboob/core/bcall.py +++ b/weboob/core/bcall.py @@ -99,7 +99,7 @@ class BackendsCall(object): else: debug('%s: Called function %s returned: %r' % (backend, function, result)) - if hasattr(result, '__iter__'): + if hasattr(result, '__iter__') and not isinstance(result, (str,unicode)): # Loop on iterator try: for subresult in result: