distributed: Fix DC file reading regression (#295)

This commit is contained in:
Tohka 2018-03-31 13:01:35 +03:00 committed by Sam Edwards
parent 78377ca10c
commit 0b1ad67e13
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)