Skip to content

Commit

Permalink
Add valid Exception type to Except in ClusterPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bssyousefi authored Feb 19, 2025
1 parent 799716c commit a11d4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a11d4bb

Please sign in to comment.