Skip to content

Commit a11d4bb

Browse files
authored
Add valid Exception type to Except in ClusterPipeline
1 parent 799716c commit a11d4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ def send_cluster_commands(
21202120
raise_on_error=raise_on_error,
21212121
allow_redirections=allow_redirections,
21222122
)
2123-
except (ClusterDownError, ConnectionError) as e:
2123+
except RedisCluster.ERRORS_ALLOW_RETRY as e:
21242124
if retry_attempts > 0:
21252125
# Try again with the new cluster setup. All other errors
21262126
# should be raised.

0 commit comments

Comments
 (0)