From 1adc2d9f2e2e909752c90537adff74ac01915431 Mon Sep 17 00:00:00 2001 From: lcian <17258265+lcian@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:53:39 +0200 Subject: [PATCH 1/2] fix(python): Honor zero retries --- clients/python/src/objectstore_client/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/python/src/objectstore_client/client.py b/clients/python/src/objectstore_client/client.py index 579e9e3b..092cd75b 100644 --- a/clients/python/src/objectstore_client/client.py +++ b/clients/python/src/objectstore_client/client.py @@ -168,7 +168,9 @@ def __init__( connection_kwargs_to_use = asdict(_ConnectionDefaults()) - if retries: + if retries == 0: + connection_kwargs_to_use["retries"] = urllib3.Retry(total=0) + elif retries is not None: connection_kwargs_to_use["retries"] = urllib3.Retry( connect=retries, # we only retry connection problems, as we cannot rewind our From 27d5f608d56390420602c1c55ae39d9d5b358f64 Mon Sep 17 00:00:00 2001 From: lcian <17258265+lcian@users.noreply.github.com> Date: Fri, 9 Oct 2026 15:02:18 +0200 Subject: [PATCH 2/2] fix(py-client): Preserve connection retry semantics --- clients/python/src/objectstore_client/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/python/src/objectstore_client/client.py b/clients/python/src/objectstore_client/client.py index 092cd75b..7654a70e 100644 --- a/clients/python/src/objectstore_client/client.py +++ b/clients/python/src/objectstore_client/client.py @@ -168,9 +168,7 @@ def __init__( connection_kwargs_to_use = asdict(_ConnectionDefaults()) - if retries == 0: - connection_kwargs_to_use["retries"] = urllib3.Retry(total=0) - elif retries is not None: + if retries is not None: connection_kwargs_to_use["retries"] = urllib3.Retry( connect=retries, # we only retry connection problems, as we cannot rewind our