diff --git a/koji/plugin.py b/koji/plugin.py index e4fe19db..3bf243e8 100644 --- a/koji/plugin.py +++ b/koji/plugin.py @@ -76,6 +76,10 @@ class PluginTracker(object): file, pathname, description = imp.find_module(name, self.pathlist(path)) try: plugin = imp.load_module(mod_name, file, pathname, description) + except Exception: + msg = 'Loading plugin %s failed' % name + logging.getLogger('koji.plugin').error(msg) + raise finally: file.close() self.plugins[name] = plugin