diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 5ec805f55d..5f6e3cd756 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -161,7 +161,7 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository): self.notify.error("Module %s does not define class %s." % (className, className)) classDef = getattr(classDef, className) - if type(classDef) != types.ClassType: + if type(classDef) not in (types.ClassType, types.TypeType): self.notify.error("Symbol %s is not a class name." % (className)) else: dclass.setClassDef(classDef)