diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-05-06 22:44:19 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-05-06 22:44:19 -0700 |
commit | ef053647bb834782cde43e6d5b1f829d64646a42 (patch) | |
tree | 7c4fa321f4dca5b680549a5f47274c016165296c /redis/exceptions.py | |
parent | bb37148294e9b91c1da872a84a7bf217c15b064d (diff) | |
download | redis-py-ef053647bb834782cde43e6d5b1f829d64646a42.tar.gz |
SentinelManagedConnections to master servers disconnect on READONLY errors.
Any attempt to reconnect will force all connections in that pool to update
their connections to the new master. Fixes #435
Diffstat (limited to 'redis/exceptions.py')
-rw-r--r-- | redis/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/exceptions.py b/redis/exceptions.py index 0b64f91..963e2d0 100644 --- a/redis/exceptions.py +++ b/redis/exceptions.py @@ -58,3 +58,7 @@ class NoScriptError(ResponseError): class ExecAbortError(ResponseError): pass + + +class ReadOnlyError(ResponseError): + pass |