Skip to content

Commit 5a93a4c

Browse files
authoredJun 3, 2021
fix: Solve deprecation warning on retry policy (#194)
1 parent 478b3eb commit 5a93a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎sdcclient/_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
1111
retry_strategy = Retry(
1212
total=3,
1313
status_forcelist=[403, 404, 429, 500, 502, 503, 504],
14-
method_whitelist=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"],
14+
allowed_methods=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"],
1515
backoff_factor=2,
1616
)
1717
kwargs["max_retries"] = retry_strategy

0 commit comments

Comments
 (0)