From 5a93a4c5b314173f66e9ab214704700b775064aa Mon Sep 17 00:00:00 2001 From: Jorge Maroto Date: Thu, 3 Jun 2021 15:49:32 +0200 Subject: [PATCH] fix: Solve deprecation warning on retry policy (#194) --- sdcclient/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcclient/_common.py b/sdcclient/_common.py index ac4c309..8795d5a 100644 --- a/sdcclient/_common.py +++ b/sdcclient/_common.py @@ -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