Log the underlying error cause too if get_plugin fails

This commit is contained in:
Fabio Manganiello 2019-07-16 16:51:27 +02:00
parent 4e8235a649
commit 96c9d5460a

View file

@ -106,7 +106,7 @@ def get_plugin(plugin_name, reload=False):
try:
plugin_class = getattr(plugin, cls_name)
except AttributeError as e:
logger.warning('No such class in {}: {}'.format(plugin_name, cls_name))
logger.warning('No such class in {}: {} [error: {}]'.format(plugin_name, cls_name, str(e)))
raise RuntimeError(e)
with plugins_init_locks[plugin_name]: