don't iterate on strings
This commit is contained in:
parent
08700f4a31
commit
5d33778986
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue