Loader invalid plugin nicer error (#52754)

* stop processing invalid plugins
This commit is contained in:
Brian Coca 2019-02-26 11:51:16 -05:00 committed by GitHub
parent d8a2d64ec1
commit 514b974182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- skip invalid plugin after warning in loader

View file

@ -540,6 +540,7 @@ class PluginLoader:
self._load_config_defs(basename, module, path) self._load_config_defs(basename, module, path)
except Exception as e: except Exception as e:
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_text(e))) display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_text(e)))
continue
self._module_cache[path] = module self._module_cache[path] = module
found_in_cache = False found_in_cache = False