Fix incorrect _disconnect_raise docstring
@@ -483,8 +483,8 @@ class Redis(
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 (
