Merge pull request #11308 from reaganjlee/iter-reporting
Improve reporting from __iter__ exceptions
This commit is contained in:
@@ -132,7 +132,7 @@ def isiterable(obj: Any) -> bool:
|
||||
try:
|
||||
iter(obj)
|
||||
return not istext(obj)
|
||||
except TypeError:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user