Skip to content

Commit 7860995

Browse files
committed
put not outside of the parentheses
1 parent a1ee3df commit 7860995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def execute_command(self, *args, **options):
669669
return self.parse_response(connection, command_name, **options)
670670
except (ConnectionError, TimeoutError) as e:
671671
connection.disconnect()
672-
if (not connection.retry_on_timeout and
672+
if not (connection.retry_on_timeout and
673673
isinstance(e, TimeoutError)):
674674
raise
675675
connection.send_command(*args)
@@ -2411,7 +2411,7 @@ def _execute(self, connection, command, *args):
24112411
return command(*args)
24122412
except (ConnectionError, TimeoutError) as e:
24132413
connection.disconnect()
2414-
if (not connection.retry_on_timeout and
2414+
if not (connection.retry_on_timeout and
24152415
isinstance(e, TimeoutError)):
24162416
raise
24172417
# Connect manually here. If the Redis server is down, this will

0 commit comments

Comments
 (0)