summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Yang <ycr_aaron@foxmail.com>2018-09-02 22:51:36 +0800
committerAaron Yang <ycr_aaron@foxmail.com>2018-09-02 22:51:36 +0800
commit7860995ce4226ee0ca82d2eefa4b8bd5c3943a75 (patch)
treeb618b7b2ed63284bf024d4ac74e940e35e0f7363
parenta1ee3df167b6d9f2f3c16414ace5c8e900b9adfd (diff)
downloadredis-py-7860995ce4226ee0ca82d2eefa4b8bd5c3943a75.tar.gz
put not outside of the parentheses
-rwxr-xr-xredis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 85803cc..a103c4f 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -669,7 +669,7 @@ class StrictRedis(object):
return self.parse_response(connection, command_name, **options)
except (ConnectionError, TimeoutError) as e:
connection.disconnect()
- if (not connection.retry_on_timeout and
+ if not (connection.retry_on_timeout and
isinstance(e, TimeoutError)):
raise
connection.send_command(*args)
@@ -2411,7 +2411,7 @@ class PubSub(object):
return command(*args)
except (ConnectionError, TimeoutError) as e:
connection.disconnect()
- if (not connection.retry_on_timeout and
+ if not (connection.retry_on_timeout and
isinstance(e, TimeoutError)):
raise
# Connect manually here. If the Redis server is down, this will