diff --git a/docs/management/commands/purge_docs_cache.py b/docs/management/commands/purge_docs_cache.py index 3b6e0e327..d7a34cfe8 100644 --- a/docs/management/commands/purge_docs_cache.py +++ b/docs/management/commands/purge_docs_cache.py @@ -68,7 +68,7 @@ def purge_fastly(self, doc_versions): s = requests.Session() # make some allowance for temporary network failures for # our .post() request below - retry = Retry(total=5, method_whitelist={"POST"}, backoff_factor=0.1) + retry = Retry(total=5, allowed_methods={"POST"}, backoff_factor=0.1) s.mount(fastly_service_url, HTTPAdapter(max_retries=retry)) s.headers.update( {