Skip to content
Open
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
8 changes: 4 additions & 4 deletions aredis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ async def execute_command(self, *args, **options):
raise
except (ConnectionError, TimeoutError) as e:
connection.disconnect()
if not connection.retry_on_timeout and isinstance(e, TimeoutError):
raise
await connection.send_command(*args)
return await self.parse_response(connection, command_name, **options)
if connection.retry_on_timeout and isinstance(e, TimeoutError):
await connection.send_command(*args)
return await self.parse_response(connection, command_name, **options)
raise
finally:
pool.release(connection)

Expand Down