summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rwxr-xr-xredis/connection.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 94c8ccb..2ca755d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@
fallback for when these objects aren't explicitly closed by user code.
Prior to this change any errors encountered in closing these resources
would be hidden from the user. Thanks @jdufresne. #1281
+ * Expanded support for connection strings specifying a username connecting
+ to pre-v6 servers. #1274
* 3.4.1
* Move the username argument in the Redis and Connection classes to the
end of the argument list. This helps those poor souls that specify all
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,