diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-06-03 13:35:48 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-06-03 13:50:47 -0700 |
commit | f3e428d43b400b993955f9b4213a0794a43e8d96 (patch) | |
tree | 08804c2b74e2baf68c4d3e00e7db3fe1863cad88 /redis/exceptions.py | |
parent | 64cf721a63ca7a9a94c0d92d8206f8f1f6900afc (diff) | |
download | redis-py-f3e428d43b400b993955f9b4213a0794a43e8d96.tar.gz |
All authentication-related errors now raise AuthenticationError
AuthenticationError is now a subclass of ConnectionError, which means
the connection will be shut down and cleaned up.
Fixes #923
Diffstat (limited to 'redis/exceptions.py')
-rw-r--r-- | redis/exceptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/exceptions.py b/redis/exceptions.py index 35bfbe5..e7f2cbb 100644 --- a/redis/exceptions.py +++ b/redis/exceptions.py @@ -5,15 +5,15 @@ class RedisError(Exception): pass -class AuthenticationError(RedisError): +class ConnectionError(RedisError): pass -class ConnectionError(RedisError): +class TimeoutError(RedisError): pass -class TimeoutError(RedisError): +class AuthenticationError(ConnectionError): pass |