summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-02-06 12:05:10 +0200
committerGitHub <noreply@github.com>2022-02-06 12:05:10 +0200
commitd7dab861280ecd7dece8d96b3d05cea85d7abac2 (patch)
tree77bb8783c0abfa1f8e50bdf1be83abf3cf4a477b /redis
parenta87a750ed1a39138ba4526537335012fc95142c9 (diff)
downloadredis-py-d7dab861280ecd7dece8d96b3d05cea85d7abac2.tar.gz
Throw NotImplementedError for AUTH (#1910)
* unsupported auth * unsupported-auth * add test and docstring * fix docstring
Diffstat (limited to 'redis')
-rw-r--r--redis/commands/core.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 80eb8e8..99bf14d 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -315,6 +315,15 @@ class ManagementCommands:
Redis management commands
"""
+ def auth(self):
+ """
+ This function throws a NotImplementedError since it is intentionally
+ not supported.
+ """
+ raise NotImplementedError(
+ "AUTH is intentionally not implemented in the client."
+ )
+
def bgrewriteaof(self, **kwargs):
"""Tell the Redis server to rewrite the AOF file from data in memory.