mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
don't hide errors in __len__
This commit is contained in:
parent
aa1193a076
commit
83b5b73359
@ -334,11 +334,7 @@ class FindContainers(Job):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def _hasLength(self, obj):
|
def _hasLength(self, obj):
|
||||||
try:
|
return hasattr(obj, '__len__')
|
||||||
len(obj)
|
|
||||||
except:
|
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
def _addContainerGen(self, cont, objRef):
|
def _addContainerGen(self, cont, objRef):
|
||||||
contId = id(cont)
|
contId = id(cont)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user