diff options
-rw-r--r-- | redis/asyncio/client.py | 4 |
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 ( |