1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Being specific with except block

This commit is contained in:
_run 2023-01-08 10:49:27 +04:00 committed by GitHub
parent 8744402efc
commit 6b399ab8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ try:
# noinspection PyPackageRequirements
from PIL import Image
pil_imported = True
except:
except ImportError:
pil_imported = False