mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-10 02:35:57 +00:00
Update proxy docs and warn if python-socks is not installed
As suggested in #4505.
This commit is contained in:
@@ -114,9 +114,6 @@ class InteractiveTelegramClient(TelegramClient):
|
||||
try:
|
||||
await self.connect()
|
||||
except IOError:
|
||||
# We handle IOError and not ConnectionError because
|
||||
# PySocks' errors do not subclass ConnectionError
|
||||
# (so this will work with and without proxies).
|
||||
print('Initial connection failed. Retrying...')
|
||||
await self.connect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user