Skip to content

Commit

Permalink
Forget about wrapping the error
Browse files Browse the repository at this point in the history
  • Loading branch information
spam-n-eggs committed Mar 11, 2024
1 parent 7610c9b commit d295a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inventory/netbird.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def _get_peer_inventory(self):
"""Get the inventory from the Netbird API"""
try:
self.peers = self.client.ListPeers()
except Exception as e:
raise AnsibleError(f"Could not retrieve the Netbird inventory: {e.message}")
except:
raise AnsibleError(f"Could not retrieve the Netbird inventory. Check the API Key and URL.")

def _filter_by_config(self):
"""Filter peers by user specified configuration."""
Expand Down

0 comments on commit d295a97

Please sign in to comment.