summaryrefslogtreecommitdiff
path: root/redis/exceptions.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-05-06 22:44:19 -0700
committerAndy McCurdy <andy@andymccurdy.com>2014-05-06 22:44:19 -0700
commitef053647bb834782cde43e6d5b1f829d64646a42 (patch)
tree7c4fa321f4dca5b680549a5f47274c016165296c /redis/exceptions.py
parentbb37148294e9b91c1da872a84a7bf217c15b064d (diff)
downloadredis-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.py4
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