From a11d4bbfad6458f5033656ae39ef83fb1056c101 Mon Sep 17 00:00:00 2001 From: bssyousefi <44493177+bssyousefi@users.noreply.github.com> Date: Wed, 19 Feb 2025 07:56:26 -0500 Subject: [PATCH] Add valid Exception type to Except in ClusterPipeline --- redis/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/cluster.py b/redis/cluster.py index db866ce2bf..efed9ab4bb 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -2120,7 +2120,7 @@ def send_cluster_commands( raise_on_error=raise_on_error, allow_redirections=allow_redirections, ) - except (ClusterDownError, ConnectionError) as e: + except RedisCluster.ERRORS_ALLOW_RETRY as e: if retry_attempts > 0: # Try again with the new cluster setup. All other errors # should be raised.