Skip to content

Commit

Permalink
fix: Solve deprecation warning on retry policy (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
marojor authored Jun 3, 2021
1 parent 478b3eb commit 5a93a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcclient/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
retry_strategy = Retry(
total=3,
status_forcelist=[403, 404, 429, 500, 502, 503, 504],
method_whitelist=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"],
allowed_methods=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"],
backoff_factor=2,
)
kwargs["max_retries"] = retry_strategy
Expand Down

0 comments on commit 5a93a4c

Please sign in to comment.