From 106567de0573d2c6d8651191c7d108802d10a06d Mon Sep 17 00:00:00 2001 From: AvitalFineRedis Date: Thu, 14 Oct 2021 08:32:10 +0200 Subject: [PATCH 1/3] Throw NotImplementedError --- redis/commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/redis/commands.py b/redis/commands.py index eb7cea54f6..766d391f17 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -3154,6 +3154,11 @@ def module_list(self): """ return self.execute_command('MODULE LIST') + def command(self): + raise NotImplementedError( + "COMMAND is not supported in the client." + ) + def command_count(self): return self.execute_command('COMMAND COUNT') From 1b985b16ac73f9b2eaa6bf70338a6a9049e817aa Mon Sep 17 00:00:00 2001 From: AvitalFineRedis Date: Thu, 14 Oct 2021 08:40:17 +0200 Subject: [PATCH 2/3] Throw NotImplementedError --- redis/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/commands.py b/redis/commands.py index 766d391f17..d8d6e088cf 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -3156,7 +3156,7 @@ def module_list(self): def command(self): raise NotImplementedError( - "COMMAND is not supported in the client." + "COMMAND is intentionally not implemented in the client." ) def command_count(self): From b66187ba13cfe4fa8a31dc3107f9d3783154d1b7 Mon Sep 17 00:00:00 2001 From: AvitalFineRedis Date: Thu, 14 Oct 2021 09:02:16 +0200 Subject: [PATCH 3/3] Throw NotImplementedError --- redis/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/commands.py b/redis/commands.py index d8d6e088cf..bc805076a3 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -3154,9 +3154,9 @@ def module_list(self): """ return self.execute_command('MODULE LIST') - def command(self): + def command_info(self): raise NotImplementedError( - "COMMAND is intentionally not implemented in the client." + "COMMAND INFO is intentionally not implemented in the client." ) def command_count(self):