Skip to content

Commit

Permalink
Fix async sentinel (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Sep 11, 2023
1 parent 53be0b6 commit 8c8a529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis/asyncio/sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ async def read_response(
timeout: Optional[float] = None,
*,
disconnect_on_error: Optional[float] = True,
push_request: Optional[bool] = False,
):
try:
return await super().read_response(
disable_decoding=disable_decoding,
timeout=timeout,
disconnect_on_error=disconnect_on_error,
push_request=push_request,
)
except ReadOnlyError:
if self.connection_pool.is_master:
Expand Down

0 comments on commit 8c8a529

Please sign in to comment.