mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Use raise from in plugins (#11095)
* Use raise from. * Add changelog fragment.
This commit is contained in:
parent
1a82e93c6d
commit
2b4333a033
46 changed files with 218 additions and 165 deletions
|
|
@ -122,7 +122,7 @@ class LookupModule(LookupBase):
|
|||
try:
|
||||
data = load_collection_meta(collection_pkg, no_version=no_version)
|
||||
except Exception as exc:
|
||||
raise AnsibleLookupError(f"Error while loading metadata for {term}: {exc}")
|
||||
raise AnsibleLookupError(f"Error while loading metadata for {term}: {exc}") from exc
|
||||
|
||||
result.append(data.get("version", no_version))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue