From 6b399ab8cd5acd1430f055dfe7f65be9edee0c4e Mon Sep 17 00:00:00 2001 From: _run Date: Sun, 8 Jan 2023 10:49:27 +0400 Subject: [PATCH] Being specific with except block --- telebot/service_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/service_utils.py b/telebot/service_utils.py index 1a2b871..2e43909 100644 --- a/telebot/service_utils.py +++ b/telebot/service_utils.py @@ -6,7 +6,7 @@ try: # noinspection PyPackageRequirements from PIL import Image pil_imported = True -except: +except ImportError: pil_imported = False