提交 2ee9b9cc 编写于 作者: R Rudá Moura 提交者: Ruda Moura

avocado.plugins.manager: Skip loading bad builtin plugins.

Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 9cffb006
......@@ -68,7 +68,15 @@ class BuiltinPluginManager(PluginManager):
def load_plugins(self):
for plugin in load_builtins():
self.add_plugin(plugin())
try:
self.add_plugin(plugin())
except Exception as err:
if hasattr(plugin, 'name'):
name = plugin.name
else:
name = str(plugin)
log.error("Could not activate builtin plugin '%s': %s",
name, err)
class ExternalPluginManager(PluginManager):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册