diff --git a/redis/client.py b/redis/client.py index 7a022a0671..cbdb13d4fd 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1259,7 +1259,10 @@ def parse_response(self, block=True, timeout=0): self.check_health() - if not block and not conn.can_read(timeout=timeout): + if( + not block + and not self._execute(conn, conn.can_read, timeout=timeout) + ): return None response = self._execute(conn, conn.read_response)