mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
(Darren): better error detection
This commit is contained in:
parent
6a788dd958
commit
d39c090557
@ -88,13 +88,12 @@ class ConnectionRepository(
|
|||||||
value = unpacker.unpackObject()
|
value = unpacker.unpackObject()
|
||||||
unpacker.endUnpack()
|
unpacker.endUnpack()
|
||||||
if value is not None:
|
if value is not None:
|
||||||
try:
|
|
||||||
function = getattr(distObj, field.getName())
|
function = getattr(distObj, field.getName())
|
||||||
|
if function is not None:
|
||||||
function(*value)
|
function(*value)
|
||||||
except AttributeError:
|
else:
|
||||||
self.notify.error("\n\n\nNot able to find %s.%s"%(
|
self.notify.error("\n\n\nNot able to find %s.%s"%(
|
||||||
distObj.__class__.__name__, field.getName()))
|
distObj.__class__.__name__, field.getName()))
|
||||||
pass
|
|
||||||
|
|
||||||
# Look up the dclass
|
# Look up the dclass
|
||||||
dclass = self.dclassesByName.get(dcname+self.dcSuffix)
|
dclass = self.dclassesByName.get(dcname+self.dcSuffix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user