🐛 eat the module not found error in python. fix #6

This commit is contained in:
chfw 2018-11-05 22:08:32 +00:00
parent 616b233616
commit 1e32e01558
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ def do_import(plugin_module_name):
plugin_module = getattr(plugin_module, module)
log.debug("found " + plugin_module_name)
return plugin_module
except ModuleNotFoundError:
log.info("Module %s is missing", plugin_module_name)
except ImportError:
log.exception("failed to import %s", plugin_module_name)
raise