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.
* Latest opensearch-py v2.3.2 removes pin urllib3<2 so problem apparent.
  • Loading branch information
GraemeWatt committed Oct 10, 2023
1 parent 47c357c commit 628d97b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hepdata/resilient_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def send(self, request, **kwargs):
retry_strategy = Retry(total=TOTAL_RETRIES,
backoff_factor=4,
status_forcelist=[429, 500, 502, 503, 504],
method_whitelist=["GET", "POST"])
allowed_methods=["GET", "POST"])
adapter = TimeoutHTTPAdapter(max_retries=retry_strategy)


Expand Down
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20231009"
__version__ = "0.9.4dev20231010"

0 comments on commit 628d97b

Please sign in to comment.