More specific exception clause

This commit is contained in:
Hugo 2018-10-02 11:36:07 +03:00
parent cb8a4bac21
commit fc3a159c87

View File

@ -5,7 +5,7 @@ from PIL import features
try: try:
from PIL import _webp from PIL import _webp
HAVE_WEBP = True HAVE_WEBP = True
except: except ImportError:
HAVE_WEBP = False HAVE_WEBP = False