don't abort DC class discovery if a module exists but does not define the class
This commit is contained in:
parent
4b0a024743
commit
859f6904b8
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue