Add missing format args in ModuleManager exceptions
This commit is contained in:
parent
39c4ef1749
commit
b775f39d2b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue