aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-26 11:20:18 +0100
committerGravatar jesopo2018-09-26 11:20:18 +0100
commitb775f39d2b3d648199d3a77cbc9e208842c32869 (patch)
treeffb37037e21099f4d581713b03275daac579f4aa /src
parentDon't use assert, throw a better exception for module name collisions (diff)
signature
Add missing format args in ModuleManager exceptions
Diffstat (limited to 'src')
-rw-r--r--src/ModuleManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ModuleManager.py b/src/ModuleManager.py
index d0c72782..79ed8f2a 100644
--- a/src/ModuleManager.py
+++ b/src/ModuleManager.py
@@ -74,10 +74,10 @@ class ModuleManager(object):
if not hasattr(module, "Module"):
raise ModuleLoadException("module '%s' doesn't have a "
- "'Module' class.")
+ "'Module' class." % name)
if not inspect.isclass(module.Module):
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_events = self.events.new_context(context)