summaryrefslogtreecommitdiff
path: root/redis/asyncio/cluster.py
diff options
context:
space:
mode:
authorBar Shaul <barshaul@amazon.com>2022-09-10 20:28:49 +0300
committerBar Shaul <barshaul@amazon.com>2022-11-02 16:47:10 +0200
commit7ece39e95c6565f137ca13511152dcf9be5222c0 (patch)
treea62a81abc3d1712b70440016ed0587530eb0d37e /redis/asyncio/cluster.py
parentdad144bc40f983aa92758e690b0a24bf39e8c610 (diff)
downloadredis-py-7ece39e95c6565f137ca13511152dcf9be5222c0.tar.gz
Fixed linters
Diffstat (limited to 'redis/asyncio/cluster.py')
-rw-r--r--redis/asyncio/cluster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py
index 07d0688..cc574b3 100644
--- a/redis/asyncio/cluster.py
+++ b/redis/asyncio/cluster.py
@@ -707,7 +707,7 @@ class RedisCluster(AbstractRedis, AbstractRedisCluster, AsyncRedisClusterCommand
return await target_node.execute_command(*args, **kwargs)
except (BusyLoadingError, MaxConnectionsError):
raise
- except (ConnectionError, TimeoutError) as e:
+ except (ConnectionError, TimeoutError):
# Connection retries are being handled in the node's
# Retry object.
# Remove the failed node from the startup nodes before we try
@@ -1163,8 +1163,8 @@ class NodesManager:
if not startup_nodes_reachable:
raise RedisClusterException(
- f"Redis Cluster cannot be connected. Please provide at least "
- f"one reachable node"
+ "Redis Cluster cannot be connected. Please provide at least "
+ "one reachable node"
) from exception
# Check if the slots are not fully covered