Skip to content
Snippets Groups Projects
Commit 057dd471 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix plugins except log in plugin install

parent 9608d4c1
No related branches found
No related tags found
No related merge requests found
...@@ -38,8 +38,9 @@ class Plugin(object): ...@@ -38,8 +38,9 @@ class Plugin(object):
module.on = self._decorator_event module.on = self._decorator_event
try: try:
exec plugin_body in module.__dict__ exec plugin_body in module.__dict__
except Exception: except Exception as exc:
err_msg = 'Error during plugin installation (%s)' % self.name err_msg = 'Error during plugin installation (%s): %s' % (
self.name, exc)
logger.exception(err_msg) logger.exception(err_msg)
raise RuntimeError(err_msg) raise RuntimeError(err_msg)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment