From 859f6904b8055f227360b75cd3ef6001b92d6c98 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 6 Dec 2007 19:47:29 +0000 Subject: [PATCH] don't abort DC class discovery if a module exists but does not define the class --- direct/src/distributed/ConnectionRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 4258887402..05d3d3149d 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -257,7 +257,7 @@ class ConnectionRepository( if type(classDef) == types.ModuleType: if not hasattr(classDef, className): self.notify.warning("Module %s does not define class %s." % (className, className)) - return + continue classDef = getattr(classDef, className) if type(classDef) != types.ClassType and type(classDef) != types.TypeType: