mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-17 10:36:37 +00: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