From fd9768500d9e1fec5e38b9356a5299abb6e35246 Mon Sep 17 00:00:00 2001 From: ebergard Date: Fri, 19 Apr 2024 15:24:41 +0500 Subject: [PATCH] Replaced duplicated error code with error details https://github.com/redis/redis-py/issues/3209 --- redis/asyncio/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py index 2e470bfcfb..78ac5de53d 100644 --- a/redis/asyncio/connection.py +++ b/redis/asyncio/connection.py @@ -805,7 +805,7 @@ def _error_message(self, exception: BaseException) -> str: else: return ( f"Error {exception.args[0]} connecting to {host_error}. " - f"{exception.args[0]}." + f"{exception.args[1]}." )