atal_rest: ensure compatibility with requests < 2.27 (#79332)
This commit is contained in:
parent
d199eb9de7
commit
84f1b2e728
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue