don't hide errors in __len__
This commit is contained in:
parent
aa1193a076
commit
83b5b73359
|
|
@ -334,11 +334,7 @@ class FindContainers(Job):
|
|||
return False
|
||||
|
||||
def _hasLength(self, obj):
|
||||
try:
|
||||
len(obj)
|
||||
except:
|
||||
return False
|
||||
return True
|
||||
return hasattr(obj, '__len__')
|
||||
|
||||
def _addContainerGen(self, cont, objRef):
|
||||
contId = id(cont)
|
||||
|
|
|
|||
Loading…
Reference in New Issue