diff options
author | Zuul <zuul@review.opendev.org> | 2022-08-19 00:43:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-08-19 00:43:25 +0000 |
commit | c1f5e8b7c19b90097aecaa89c028f698cf4d804e (patch) | |
tree | ddf74ffdda586d7fd360c1d78b53a5be7e76abf1 /swiftclient | |
parent | 3b30f155a7ed6e1f66ff6d0272c4216bee543b88 (diff) | |
parent | 653cbcb686fc34cc28f9c7889e8746e77b95371a (diff) | |
download | python-swiftclient-c1f5e8b7c19b90097aecaa89c028f698cf4d804e.tar.gz |
Merge "Expand retry handling on ratelimit response"
Diffstat (limited to 'swiftclient')
-rw-r--r-- | swiftclient/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index 9c19306..e42ac70 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -1825,7 +1825,7 @@ class Connection: self.http_conn = None elif 500 <= err.http_status <= 599: pass - elif self.retry_on_ratelimit and err.http_status == 498: + elif self.retry_on_ratelimit and err.http_status in (498, 429): pass else: raise |