We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f1d2f commit 39ce685Copy full SHA for 39ce685
redis/commands/parser.py
@@ -103,6 +103,7 @@ def _get_pubsub_keys(self, *args):
103
return None
104
args = [str_if_bytes(arg) for arg in args]
105
command = args[0].upper()
106
+ keys = None
107
if command == "PUBSUB":
108
# the second argument is a part of the command name, e.g.
109
# ['PUBSUB', 'NUMSUB', 'foo'].
@@ -117,6 +118,4 @@ def _get_pubsub_keys(self, *args):
117
118
# format example:
119
# PUBLISH channel message
120
keys = [args[1]]
- else:
121
- keys = None
122
return keys
0 commit comments