Loader invalid plugin nicer error (#52754)
* stop processing invalid plugins
This commit is contained in:
parent
d8a2d64ec1
commit
514b974182
2 changed files with 3 additions and 0 deletions
2
changelogs/fragments/skip_invalid_plugin.yml
Normal file
2
changelogs/fragments/skip_invalid_plugin.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- skip invalid plugin after warning in loader
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue