summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2020-02-12 15:27:09 -0800
committerAndy McCurdy <andy@andymccurdy.com>2020-02-12 15:27:09 -0800
commitb2989759d9c4c73d28251b7976d0823770323e0c (patch)
treee70c61ea8cf56051ee07aa1253a6acdc8ecf29a5 /redis/connection.py
parent200e4dfc40ce0705ab6a3aca906e0a67884235e2 (diff)
downloadredis-py-b2989759d9c4c73d28251b7976d0823770323e0c.tar.gz
expand AUTH fallback support to pre-v6 Redis servers.
Ref #1274
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-xredis/connection.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/redis/connection.py b/redis/connection.py
index dbcf332..f54aace 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -136,8 +136,14 @@ class BaseParser(object):
'max number of clients reached': ConnectionError,
'Client sent AUTH, but no password is set': AuthenticationError,
'invalid password': AuthenticationError,
+ # some Redis server versions report invalid command syntax
+ # in lowercase
'wrong number of arguments for \'auth\' command':
AuthenticationWrongNumberOfArgsError,
+ # some Redis server versions report invalid command syntax
+ # in uppercase
+ 'wrong number of arguments for \'AUTH\' command':
+ AuthenticationWrongNumberOfArgsError,
},
'EXECABORT': ExecAbortError,
'LOADING': BusyLoadingError,