summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 7398ced0..8650dbcb 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -1126,6 +1126,10 @@ class Plugins(object):
plugin.plugin_name = module
plugins.order.append(plugin)
plugins.names[module] = plugin
+ else:
+ raise CoverageException(
+ "Plugin module %r didn't define a Plugin class" % module
+ )
return plugins