parent
a3425e95d6
commit
b5c5756118
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue