Skip to content

Commit 3caee4b

Browse files
authored
fix sentinel read_response (#2894)
1 parent 19b55c6 commit 3caee4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

redis/sentinel.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,17 @@ def connect(self):
5555
return self.retry.call_with_retry(self._connect_retry, lambda error: None)
5656

5757
def read_response(
58-
self, disable_decoding=False, *, disconnect_on_error: Optional[bool] = False
58+
self,
59+
disable_decoding=False,
60+
*,
61+
disconnect_on_error: Optional[bool] = False,
62+
push_request: Optional[bool] = False,
5963
):
6064
try:
6165
return super().read_response(
6266
disable_decoding=disable_decoding,
6367
disconnect_on_error=disconnect_on_error,
68+
push_request=push_request,
6469
)
6570
except ReadOnlyError:
6671
if self.connection_pool.is_master:

0 commit comments

Comments
 (0)