Forget about wrapping the error

This commit is contained in:
Mark J. Horninger 2024-03-10 22:36:47 -04:00
parent d295a97588
commit 3645416c8d
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
"""Get the inventory from the Netbird API"""
try:
self.peers = self.client.ListPeers()
except:
except Exception:
raise AnsibleError(f"Could not retrieve the Netbird inventory. Check the API Key and URL.")
def _filter_by_config(self):