Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion redis/asyncio/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,9 @@ async def execute(
return []

try:
for _ in range(self._client.cluster_error_retry_attempts):
# Add one for the first execution
execute_attempts = 1 + self._client.cluster_error_retry_attempts
for _ in range(execute_attempts):
if self._client._initialize:
await self._client.initialize()

Expand Down
Loading