Revision 08490c70 astakosclient/astakosclient/utils.py
b/astakosclient/astakosclient/utils.py | ||
---|---|---|
49 | 49 |
is_last_attempt = attemps == self.retry |
50 | 50 |
if is_last_attempt: |
51 | 51 |
raise err |
52 |
if err.status == 401 or err.status == 404: |
|
52 |
if err.status == 401 or \ |
|
53 |
err.status == 404 or \ |
|
54 |
err.status == 413: |
|
53 | 55 |
# In case of Unauthorized response |
54 |
# or Not Found return immediately |
|
56 |
# or Not Found or Request Entity Too Large |
|
57 |
# return immediately |
|
55 | 58 |
raise err |
56 | 59 |
self.logger.warning("AstakosClient request failed..retrying") |
57 | 60 |
attemps += 1 |
Also available in: Unified diff