fixes retry bug on 202 status code
@@ -291,6 +291,9 @@ class RetryPolicy(HTTPPolicy):
"""
settings['total'] -= 1
+ if response.http_response.status_code == 202:
+ return False
+
if error and self._is_connection_error(error):
# Connect retry?
settings['connect'] -= 1
