Commit 8a08082d authored by Vincent A's avatar Vincent A

weboob.core.bcall: do not iterate on bytes from CapDocument.download_document

parent c563c2ca
......@@ -100,7 +100,7 @@ class BackendsCall(object):
else:
self.logger.debug('%s: Called function %s returned: %r', backend, function, result)
if hasattr(result, '__iter__') and not isinstance(result, basestring):
if hasattr(result, '__iter__') and not isinstance(result, (bytes, basestring)):
# Loop on iterator
try:
for subresult in result:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment