Skip to content

Commit eae6d46

Browse files
committed
fix: Remove redundant AUTH command check logic as similar logic exists (lines 461-468).
1 parent 1d4c679 commit eae6d46

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

redis/connection.py

-9
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,6 @@ def on_connect(self):
414414
# execute the MULTI block
415415
self.send_command('EXEC')
416416
responses = self._read_exec_responses()
417-
# check AUTH response if AUTH command was sent
418-
if auth_command_response:
419-
# First response should be for AUTH command
420-
auth_response = responses[0]
421-
if b'ERR' in auth_response:
422-
raise AuthenticationError(
423-
"Authentication failed: %s" % auth_response)
424-
responses = responses[1:] # Remove AUTH response from the list
425-
426417
self._handle_responses(responses, auth_args)
427418
except (TimeoutError, AuthenticationError, ConnectionError) as e:
428419
if not self.retry_on_timeout:

0 commit comments

Comments
 (0)