From 67499e80956887e2a30ffdf721526d7802b94d27 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Fri, 10 Sep 2021 08:15:01 -0700 Subject: [PATCH] Fix #1572. --- redis/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)