Skip to content

Commit a947728

Browse files
authored
Fix incorrect _disconnect_raise docstring (#2534)
1 parent 8401da8 commit a947728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/asyncio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ async def _send_command_parse_response(self, conn, command_name, *args, **option
483483
async def _disconnect_raise(self, conn: Connection, error: Exception):
484484
"""
485485
Close the connection and raise an exception
486-
if retry_on_timeout is not set or the error
487-
is not a TimeoutError
486+
if retry_on_error is not set or the error
487+
is not one of the specified error types
488488
"""
489489
await conn.disconnect()
490490
if (

0 commit comments

Comments
 (0)