Skip to content

Commit

Permalink
Fix logic for urllib3 patching (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo authored Sep 25, 2024
1 parent 37da15f commit df15d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caveclient/session_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
)

Expand Down

0 comments on commit df15d07

Please sign in to comment.