diff options
author | Aaron Yang <ycr_aaron@foxmail.com> | 2018-08-23 15:37:27 +0800 |
---|---|---|
committer | Aaron Yang <ycr_aaron@foxmail.com> | 2018-08-23 15:37:27 +0800 |
commit | ee520ed1b351e63b2c672c5f29a64fd7afa56a2e (patch) | |
tree | 2e1112195bbd80cf45a6caabc4e6afc8cec9051a | |
parent | 413e802f8fe390738bc1e89716083586e0269fd0 (diff) | |
download | redis-py-ee520ed1b351e63b2c672c5f29a64fd7afa56a2e.tar.gz |
fix retry logic for StricRedis
-rwxr-xr-x | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 79e94d0..f06c9ff 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 isinstance(e, TimeoutError): + if (not connection.retry_on_timeout and isinstance(e, TimeoutError)): raise connection.send_command(*args) return self.parse_response(connection, command_name, **options) |