Skip to content

Commit

Permalink
resilient_requests: replace method_whitelist
Browse files Browse the repository at this point in the history
* method_whitelist was deprecated in urllib3 v1.26.0 and removed in v2.
  • Loading branch information
GraemeWatt committed Nov 14, 2023
1 parent 36ff5da commit 01acff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hepdata_cli/resilient_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def send(self, request, **kwargs):
retry_strategy = Retry(total=TOTAL_RETRIES,
backoff_factor=2,
status_forcelist=[429, 500, 502, 503, 504],
method_whitelist=["GET", "POST"])
allowed_methods=["GET", "POST"])
adapter = TimeoutHTTPAdapter(max_retries=retry_strategy)


Expand Down

0 comments on commit 01acff3

Please sign in to comment.