mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
More specific exception clause
This commit is contained in:
parent
cb8a4bac21
commit
fc3a159c87
|
@ -5,7 +5,7 @@ from PIL import features
|
|||
try:
|
||||
from PIL import _webp
|
||||
HAVE_WEBP = True
|
||||
except:
|
||||
except ImportError:
|
||||
HAVE_WEBP = False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user