Skip to content

Commit 8680c91

Browse files
committed
except logic changed
1 parent 223fa0e commit 8680c91

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

redis/cluster.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,9 +1060,8 @@ def _execute_command(self, target_node, *args, **kwargs):
10601060
response, **kwargs
10611061
)
10621062
return response
1063-
1064-
except AuthenticationError as e:
1065-
raise e
1063+
except AuthenticationError:
1064+
raise
10661065
except (ConnectionError, TimeoutError) as e:
10671066
# ConnectionError can also be raised if we couldn't get a
10681067
# connection from the pool before timing out, so check that
@@ -1113,8 +1112,8 @@ def _execute_command(self, target_node, *args, **kwargs):
11131112
time.sleep(0.25)
11141113
self.nodes_manager.initialize()
11151114
raise e
1116-
except ResponseError as e:
1117-
raise e
1115+
except ResponseError:
1116+
raise
11181117
except Exception as e:
11191118
if connection:
11201119
connection.disconnect()

0 commit comments

Comments
 (0)