From aec957d62da03d511b7a656a76490e882f740024 Mon Sep 17 00:00:00 2001 From: delobanov <37274413+delobanov@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:54:34 +0300 Subject: [PATCH] Add error message back to proxy errors (#4443) --- telethon/network/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py index fa034013..8236bc0c 100644 --- a/telethon/network/connection/connection.py +++ b/telethon/network/connection/connection.py @@ -121,7 +121,7 @@ class Connection(abc.ABC): class ConnectionErrorExtra(ConnectionError): def __init__(self, message, error_code=None): - super().__init__() + super().__init__(message) self.error_code = error_code python_socks._errors.ProxyError = ConnectionErrorExtra