mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
distributed: Fix DC file reading regression (#295)
This commit is contained in:
parent
78377ca10c
commit
0b1ad67e13
@ -333,7 +333,7 @@ class ConnectionRepository(
|
||||
continue
|
||||
classDef = getattr(classDef, className)
|
||||
|
||||
if inspect.isclass(classDef):
|
||||
if not inspect.isclass(classDef):
|
||||
self.notify.error("Symbol %s is not a class name." % (className))
|
||||
else:
|
||||
dclass.setClassDef(classDef)
|
||||
|
@ -280,7 +280,7 @@ class ServerRepository:
|
||||
self.notify.error("Module %s does not define class %s." % (className, className))
|
||||
classDef = getattr(classDef, className)
|
||||
|
||||
if inspect.isclass(classDef):
|
||||
if not inspect.isclass(classDef):
|
||||
self.notify.error("Symbol %s is not a class name." % (className))
|
||||
else:
|
||||
dclass.setClassDef(classDef)
|
||||
|
Loading…
x
Reference in New Issue
Block a user