mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 08:14:14 +03:00
Except ProxyConnectionError on ReadThread (fix #307)
This commit is contained in:
parent
2a1a4508b8
commit
f984aae391
|
@ -811,7 +811,8 @@ class TelegramBareClient:
|
|||
|
||||
try:
|
||||
import socks
|
||||
if isinstance(error, socks.GeneralProxyError):
|
||||
if isinstance(error, socks.GeneralProxyError) or \
|
||||
isinstance(error, socks.ProxyConnectionError):
|
||||
# This is a known error, and it's not related to
|
||||
# Telegram but rather to the proxy. Disconnect and
|
||||
# hand it over to the main thread.
|
||||
|
|
Loading…
Reference in New Issue
Block a user