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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/commands/parser.py b/redis/commands/parser.py
index d8b0327..26b190c 100644
--- a/redis/commands/parser.py
+++ b/redis/commands/parser.py
@@ -46,8 +46,9 @@ class CommandsParser:
# version has changed, the commands may not be current
self.initialize(redis_conn)
if cmd_name not in self.commands:
- raise RedisError("{0} command doesn't exist in Redis "
- "commands".format(cmd_name.upper()))
+ raise RedisError(
+ f"{cmd_name.upper()} command doesn't exist in Redis commands"
+ )
command = self.commands.get(cmd_name)
if 'movablekeys' in command['flags']: