From 35d863a79a504cc2f4603914cf90c345e062fd27 Mon Sep 17 00:00:00 2001 From: delobanov Date: Thu, 29 Aug 2024 23:25:18 +0300 Subject: [PATCH] Fix error message --- 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