mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +03:00
Add error message back to proxy errors (#4443)
This commit is contained in:
parent
46854a7660
commit
aec957d62d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user