Pārlūkot izejas kodu

don't abort DC class discovery if a module exists but does not define the class

Darren Ranalli 18 gadi atpakaļ
vecāks
revīzija
859f6904b8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      direct/src/distributed/ConnectionRepository.py

+ 1 - 1
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: