From 6d91d43e9fc52b42f5208995e4d07b3fbde446af Mon Sep 17 00:00:00 2001 From: "Mark J. Horninger" Date: Sun, 10 Mar 2024 22:37:31 -0400 Subject: [PATCH] Forget about wrapping the error --- plugins/inventory/netbird.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/netbird.py b/plugins/inventory/netbird.py index 3ce2857..472a1a4 100644 --- a/plugins/inventory/netbird.py +++ b/plugins/inventory/netbird.py @@ -290,7 +290,7 @@ class NetbirdApi: } peers = [] response = requests.request("GET", url, headers=headers) - if re.match('4\\d\\d', response.status_code): + if re.match('4\d\d', response.status_code): raise Exception(f"{response.status_code}: {response.text}\nPlease check the API Key and URL.") peer_json = json.loads(response.text)