diff --git a/Tests/test_features.py b/Tests/test_features.py index 312894cb4..03ad0d4c9 100644 --- a/Tests/test_features.py +++ b/Tests/test_features.py @@ -5,7 +5,7 @@ from PIL import features try: from PIL import _webp HAVE_WEBP = True -except: +except ImportError: HAVE_WEBP = False