From d7b56103ed4d0ba9c05c74ca5580c72fcb70c09c Mon Sep 17 00:00:00 2001 From: Chayim Date: Thu, 25 Nov 2021 14:18:33 +0200 Subject: Adding support for non-decodable commands (#1731) --- redis/sentinel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redis/sentinel.py') 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 -- cgit v1.2.1