atal_rest: ensure compatibility with requests < 2.27 (#79332)

This commit is contained in:
Emmanuel Cazenave 2023-07-03 17:34:36 +02:00
parent d199eb9de7
commit 84f1b2e728
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class AtalREST(BaseResource, HTTPResource):
try:
return resp.json()
except (json.JSONDecodeError, requests.exceptions.JSONDecodeError) as e:
except (json.JSONDecodeError, requests.exceptions.RequestException) as e:
raise APIError(str(e))
def check_status(self):