Loader invalid plugin nicer error (#52754)

* stop processing invalid plugins
pull/53009/head
Brian Coca 6 years ago committed by GitHub
parent d8a2d64ec1
commit 514b974182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save