config lookup, remove unreachable code (#86051)

defensive, but uneeded since get_option already precludes bad values
this far in
This commit is contained in:
Brian Coca
2025-11-03 10:35:08 -05:00
committed by GitHub
parent 730af3239d
commit 5904846342

View File

@@ -128,8 +128,6 @@ class LookupModule(LookupBase):
pass
case 'warn':
self._display.error_as_warning(msg=f"Skipping {term}.", exception=e)
case _:
raise AnsibleError(f"Invalid option for error handling, missing must be error, warn or skip, got: {missing}.") from e
if result is not Sentinel:
if show_origin: