Skip to content

Commit 1bcdf2d

Browse files
authored
Fixing exception in listen (#1823)
1 parent f99744b commit 1bcdf2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redis/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,8 @@ def handle_message(self, response, ignore_subscribe_messages=False):
15301530
with a message handler, the handler is invoked instead of a parsed
15311531
message being returned.
15321532
"""
1533+
if response is None:
1534+
return None
15331535
message_type = str_if_bytes(response[0])
15341536
if message_type == "pmessage":
15351537
message = {

0 commit comments

Comments
 (0)