fix(api-client): get status_code from response
This commit is contained in:
parent
f60f878eed
commit
6f2724dad1
|
@ -249,8 +249,8 @@ class AirtimeApiClient:
|
|||
"""
|
||||
break
|
||||
|
||||
except requests.exceptions.HTTPError as e:
|
||||
logger.error("Http error code: %s", e.code)
|
||||
except requests.exceptions.HTTPError as exception:
|
||||
logger.error(f"Http error code: {exception.response.status_code}")
|
||||
logger.error("traceback: %s", traceback.format_exc())
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
logger.error("Server is down: %s", e.args)
|
||||
|
|
Loading…
Reference in New Issue