summaryrefslogtreecommitdiff
path: root/redis/commands/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/parser.py')
-rw-r--r--redis/commands/parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/redis/commands/parser.py b/redis/commands/parser.py
index dadf3c6..4cce800 100644
--- a/redis/commands/parser.py
+++ b/redis/commands/parser.py
@@ -103,6 +103,7 @@ class CommandsParser:
return None
args = [str_if_bytes(arg) for arg in args]
command = args[0].upper()
+ keys = None
if command == "PUBSUB":
# the second argument is a part of the command name, e.g.
# ['PUBSUB', 'NUMSUB', 'foo'].
@@ -117,6 +118,4 @@ class CommandsParser:
# format example:
# PUBLISH channel message
keys = [args[1]]
- else:
- keys = None
return keys