mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Modify setup.py to work even if generated code was wrong
This commit is contained in:
parent
f233110732
commit
2bb26d6389
3
setup.py
3
setup.py
|
@ -21,7 +21,8 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from telethon import TelegramClient
|
from telethon import TelegramClient
|
||||||
except ImportError:
|
except Exception as e:
|
||||||
|
print('Failed to import TelegramClient due to', e)
|
||||||
TelegramClient = None
|
TelegramClient = None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user