Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix automatic retries of failed requests (#605)
* fix automatic retries of failed requests * fix `test_retry_codes_until_exceeded` If the number of retries is set to 3, then the total number of requests should be 4: the initial one + the three retries. * improve consistency between HTTP clients This commit modifies `PycurlClient` to set the `should_retry` attribute of `APIConnectionError` exceptions, like `RequestsClient` does.
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters