Skip to content

Commit eaa3435

Browse files
committed
redundant logic removed
1 parent 6abd394 commit eaa3435

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

redis/cluster.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from redis.crc import REDIS_CLUSTER_HASH_SLOTS, key_slot
1414
from redis.exceptions import (
1515
AskError,
16-
AuthenticationError,
1716
ClusterCrossSlotError,
1817
ClusterDownError,
1918
ClusterError,
@@ -1061,8 +1060,6 @@ def _execute_command(self, target_node, *args, **kwargs):
10611060
)
10621061
return response
10631062

1064-
except AuthenticationError as e:
1065-
raise e
10661063
except (ConnectionError, TimeoutError) as e:
10671064
# ConnectionError can also be raised if we couldn't get a
10681065
# connection from the pool before timing out, so check that
@@ -1113,8 +1110,6 @@ def _execute_command(self, target_node, *args, **kwargs):
11131110
time.sleep(0.25)
11141111
self.nodes_manager.initialize()
11151112
raise e
1116-
except ResponseError as e:
1117-
raise e
11181113
except Exception as e:
11191114
if connection:
11201115
connection.disconnect()

0 commit comments

Comments
 (0)