Skip to content

Commit 0407f21

Browse files
committed
reverted changes
1 parent 336b4d7 commit 0407f21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redis/cluster.py

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

1064+
except AuthenticationError as e:
1065+
raise e
10631066
except (ConnectionError, TimeoutError) as e:
10641067
# ConnectionError can also be raised if we couldn't get a
10651068
# connection from the pool before timing out, so check that
@@ -1110,6 +1113,8 @@ def _execute_command(self, target_node, *args, **kwargs):
11101113
time.sleep(0.25)
11111114
self.nodes_manager.initialize()
11121115
raise e
1116+
except ResponseError as e:
1117+
raise e
11131118
except Exception as e:
11141119
if connection:
11151120
connection.disconnect()

0 commit comments

Comments
 (0)