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