diff --git a/telebot/service_utils.py b/telebot/service_utils.py index d4c1eb2..2e43909 100644 --- a/telebot/service_utils.py +++ b/telebot/service_utils.py @@ -1,13 +1,12 @@ import random import string +from io import BytesIO try: # noinspection PyPackageRequirements from PIL import Image - from io import BytesIO - pil_imported = True -except: +except ImportError: pil_imported = False