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:
parent
8744402efc
commit
6b399ab8cd
@ -6,7 +6,7 @@ try:
|
||||
# noinspection PyPackageRequirements
|
||||
from PIL import Image
|
||||
pil_imported = True
|
||||
except:
|
||||
except ImportError:
|
||||
pil_imported = False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user