Add missing format args in ModuleManager exceptions

This commit is contained in:
jesopo 2018-09-26 11:20:18 +01:00
parent 39c4ef1749
commit b775f39d2b

View file

@ -74,10 +74,10 @@ class ModuleManager(object):
if not hasattr(module, "Module"): if not hasattr(module, "Module"):
raise ModuleLoadException("module '%s' doesn't have a " raise ModuleLoadException("module '%s' doesn't have a "
"'Module' class.") "'Module' class." % name)
if not inspect.isclass(module.Module): if not inspect.isclass(module.Module):
raise ModuleLoadException("module '%s' has a 'Module' attribute " raise ModuleLoadException("module '%s' has a 'Module' attribute "
"but it is not a class.") "but it is not a class." % name)
context = str(uuid.uuid4()) context = str(uuid.uuid4())
context_events = self.events.new_context(context) context_events = self.events.new_context(context)