summaryrefslogtreecommitdiff
path: root/redis/sentinel.py
diff options
context:
space:
mode:
authorChayim I. Kirshen <c@kirshen.com>2021-11-21 13:17:31 +0200
committerChayim I. Kirshen <c@kirshen.com>2021-11-21 13:17:31 +0200
commit1448a65e656a270caf4c6d3ba4eee5de04d0c4e1 (patch)
tree3b94bf968ef0d0d8b9820f8e8c390cab752df07a /redis/sentinel.py
parentd2b233384458869270352b8c99ca682ae480da5f (diff)
downloadredis-py-ck-binary-responses.tar.gz
Adding support for non-decodable commandsck-binary-responses
Some commands (i.e DUMP) should never have their response decoded, as they return binaries, not encoded blobs fixes #1254
Diffstat (limited to 'redis/sentinel.py')
-rw-r--r--redis/sentinel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/sentinel.py b/redis/sentinel.py
index 17dd75b..3efd58f 100644
--- a/redis/sentinel.py
+++ b/redis/sentinel.py
@@ -51,9 +51,9 @@ class SentinelManagedConnection(Connection):
continue
raise SlaveNotFoundError # Never be here
- def read_response(self):
+ def read_response(self, disable_decoding=False):
try:
- return super().read_response()
+ return super().read_response(disable_decoding=disable_decoding)
except ReadOnlyError:
if self.connection_pool.is_master:
# When talking to a master, a ReadOnlyError when likely