Skip to content

Commit 1d4c679

Browse files
committed
refactor: Modify code to execute the EXEC command within the try block where the MULTI command is executed.
1 parent e6af1f4 commit 1d4c679

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redis/connection.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ def on_connect(self):
411411
if self.client_cache:
412412
self.send_command("CLIENT", "TRACKING", "ON")
413413

414-
# execute the MULTI block
415-
try:
414+
# execute the MULTI block
416415
self.send_command('EXEC')
417416
responses = self._read_exec_responses()
418417
# check AUTH response if AUTH command was sent

0 commit comments

Comments
 (0)