Commit 9deca7d3 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis

astakosclient: Don't retry when response is 413

parent d31a5a89
......@@ -49,9 +49,12 @@ def retry(func):
is_last_attempt = attemps == self.retry
if is_last_attempt:
raise err
if err.status == 401 or err.status == 404:
if err.status == 401 or \
err.status == 404 or \
err.status == 413:
# In case of Unauthorized response
# or Not Found return immediately
# or Not Found or Request Entity Too Large
# return immediately
raise err
self.logger.warning("AstakosClient request failed..retrying")
attemps += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment