Commit 919644650ade534fa79343bbc5098c9ab35b3171
1 parent
51d15c3b
Add request retry for 409 status code
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -10,7 +10,7 @@ import urllib |
10 | 10 | def retry_if_request_failed(exception): |
11 | 11 | if isinstance(exception, RequestFailed): |
12 | 12 | status_code = getattr(exception, 'status_int', None) |
13 | - if 500 <= status_code < 600 or status_code == 429: | |
13 | + if 500 <= status_code < 600 or status_code in (409, 429): | |
14 | 14 | return True |
15 | 15 | else: |
16 | 16 | return False | ... | ... |
Please
register
or
login
to post a comment