summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohsin Haider <13412236+mohsinhaider@users.noreply.github.com>2023-01-05 06:40:13 -0600
committerGitHub <noreply@github.com>2023-01-05 14:40:13 +0200
commita94772848db87bfc2c3cee20d8ca8b257fc37466 (patch)
treed217938895e484b8c849dc2f587b395851736f1a
parent8401da88d8614d38f2546e46964da6785851cded (diff)
downloadredis-py-a94772848db87bfc2c3cee20d8ca8b257fc37466.tar.gz
Fix incorrect _disconnect_raise docstring (#2534)
-rw-r--r--redis/asyncio/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py
index 8fd9cd2..e56fd02 100644
--- a/redis/asyncio/client.py
+++ b/redis/asyncio/client.py
@@ -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 (