summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 5a0b511..1a5466f 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -4,7 +4,8 @@ from redis.exceptions import (
RedisError,
ConnectionError,
ResponseError,
- InvalidResponse
+ InvalidResponse,
+ AuthenticationError
)
try:
@@ -215,7 +216,7 @@ class Connection(object):
if self.password:
self.send_command('AUTH', self.password)
if self.read_response() != 'OK':
- raise ConnectionError('Invalid Password')
+ raise AuthenticationError('Invalid Password')
# if a database is specified, switch to it
if self.db: