From df15d078a4d91c7791437708262728c480c645d4 Mon Sep 17 00:00:00 2001 From: Ben Pedigo Date: Wed, 25 Sep 2024 09:37:31 -0700 Subject: [PATCH] Fix logic for urllib3 patching (#239) --- caveclient/session_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caveclient/session_config.py b/caveclient/session_config.py index 136f2be4..6cb836ae 100644 --- a/caveclient/session_config.py +++ b/caveclient/session_config.py @@ -144,6 +144,7 @@ def _patch_session( backoff_factor=SESSION_DEFAULTS["backoff_factor"], status_forcelist=SESSION_DEFAULTS["status_forcelist"], allowed_methods=frozenset(["GET", "POST"]), + backoff_max=SESSION_DEFAULTS["backoff_max"], raise_on_status=False, ) else: @@ -152,7 +153,6 @@ def _patch_session( backoff_factor=SESSION_DEFAULTS["backoff_factor"], status_forcelist=SESSION_DEFAULTS["status_forcelist"], allowed_methods=frozenset(["GET", "POST"]), - backoff_max=SESSION_DEFAULTS["backoff_max"], raise_on_status=False, )