Skip to content

Commit

Permalink
Merge pull request #160 from zonwizard/fix-connection-error-status-code
Browse files Browse the repository at this point in the history
assign 503 status_code to ConnectionError
  • Loading branch information
denisneuf authored Aug 30, 2023
2 parents c54a42e + 457803a commit b4f5045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ad_api/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _download(self, params: dict = None, headers=None) -> ApiResponse:
except requests.exceptions.ConnectionError as e:
error = {
'success': False,
'code': e.status_code,
'code': 503,
'response': e
}
next_token = None
Expand Down

0 comments on commit b4f5045

Please sign in to comment.