diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2019-06-01 15:08:51 -0700 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2019-06-01 15:08:51 -0700 |
| commit | d544c7474d578706a89b394fdb15f3a541ac7346 (patch) | |
| tree | 693bd3e0a986cf483fb87b2dad02152a53bd7a89 | |
| parent | 0b81453efe61708dcd072eb4831e9107fe590077 (diff) | |
| download | redis-py-d544c7474d578706a89b394fdb15f3a541ac7346.tar.gz | |
don't raise socket_error on can_read() calls
| -rwxr-xr-x | redis/connection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index e4773ec..027a3bd 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -367,7 +367,8 @@ class HiredisParser(BaseParser): if self._next_response is False: self._next_response = self._reader.gets() if self._next_response is False: - return self.read_from_socket(timeout=timeout) + return self.read_from_socket(timeout=timeout, + raise_on_socket_error=False) return True def read_from_socket(self, timeout=SENTINEL, raise_on_socket_error=True): |
