diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-11-25 14:18:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 14:18:33 +0200 |
commit | d7b56103ed4d0ba9c05c74ca5580c72fcb70c09c (patch) | |
tree | 943b5df36eea7d2e37d50be626158461ecf41485 /redis/sentinel.py | |
parent | 8991370332e818cf9886cec6adc1858189b04bd6 (diff) | |
download | redis-py-d7b56103ed4d0ba9c05c74ca5580c72fcb70c09c.tar.gz |
Adding support for non-decodable commands (#1731)
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 |