Modify setup.py to work even if generated code was wrong

This commit is contained in:
Lonami Exo 2017-09-26 14:29:35 +02:00
parent f233110732
commit 2bb26d6389

View File

@ -21,7 +21,8 @@ from setuptools import find_packages, setup
try:
from telethon import TelegramClient
except ImportError:
except Exception as e:
print('Failed to import TelegramClient due to', e)
TelegramClient = None