From 34d3725232bfc13669a6666886a952fdfd45605d Mon Sep 17 00:00:00 2001 From: Mohsin Haider <13412236+mohsinhaider@users.noreply.github.com> Date: Sat, 31 Dec 2022 02:37:05 -0600 Subject: [PATCH] Fix incorrect _disconnect_raise docstring --- redis/asyncio/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py index 5a2c496661..9059a389b1 100644 --- a/redis/asyncio/client.py +++ b/redis/asyncio/client.py @@ -483,8 +483,8 @@ async def _send_command_parse_response(self, conn, command_name, *args, **option async def _disconnect_raise(self, conn: Connection, error: Exception): """ Close the connection and raise an exception - if retry_on_timeout is not set or the error - is not a TimeoutError + if retry_on_error is not set or the error + is not one of the specified error types """ await conn.disconnect() if (