mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -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
|
||||
|
||||
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…
x
Reference in New Issue
Block a user