mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
This commit is contained in:
parent
5f98a5a736
commit
fd839d7a67
1 changed files with 4 additions and 1 deletions
|
@ -486,7 +486,10 @@ class PluginLoader:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if path not in self._module_cache:
|
if path not in self._module_cache:
|
||||||
module = self._load_module_source(name, path)
|
try:
|
||||||
|
module = self._load_module_source(name, path)
|
||||||
|
except Exception as e:
|
||||||
|
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_text(e)))
|
||||||
self._module_cache[path] = module
|
self._module_cache[path] = module
|
||||||
found_in_cache = False
|
found_in_cache = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue