Skip to content

Commit

Permalink
Fixed renamed argument of urllib3.Retry()
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed Jun 14, 2024
1 parent af1aa64 commit 0a38cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/management/commands/purge_docs_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit 0a38cdd

Please sign in to comment.