diff options
author | Bar Shaul <barshaul@amazon.com> | 2022-09-10 20:28:49 +0300 |
---|---|---|
committer | Bar Shaul <barshaul@amazon.com> | 2022-11-02 16:47:10 +0200 |
commit | 7ece39e95c6565f137ca13511152dcf9be5222c0 (patch) | |
tree | a62a81abc3d1712b70440016ed0587530eb0d37e /redis/asyncio | |
parent | dad144bc40f983aa92758e690b0a24bf39e8c610 (diff) | |
download | redis-py-7ece39e95c6565f137ca13511152dcf9be5222c0.tar.gz |
Fixed linters
Diffstat (limited to 'redis/asyncio')
-rw-r--r-- | redis/asyncio/cluster.py | 6 |
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 |