diff options
author | Chayim I. Kirshen <c@kirshen.com> | 2021-11-21 13:17:31 +0200 |
---|---|---|
committer | Chayim I. Kirshen <c@kirshen.com> | 2021-11-21 13:17:31 +0200 |
commit | 1448a65e656a270caf4c6d3ba4eee5de04d0c4e1 (patch) | |
tree | 3b94bf968ef0d0d8b9820f8e8c390cab752df07a /redis/sentinel.py | |
parent | d2b233384458869270352b8c99ca682ae480da5f (diff) | |
download | redis-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.py | 4 |
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 |