From 1448a65e656a270caf4c6d3ba4eee5de04d0c4e1 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Sun, 21 Nov 2021 13:17:31 +0200 Subject: Adding support for non-decodable commands Some commands (i.e DUMP) should never have their response decoded, as they return binaries, not encoded blobs fixes #1254 --- 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