Forget about wrapping the error

This commit is contained in:
Mark J. Horninger 2024-03-10 22:37:31 -04:00
parent 3645416c8d
commit 6d91d43e9f
1 changed files with 1 additions and 1 deletions

View File

@ -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)