From fc3a159c87ed0354330e5da8fa8238ac0477c817 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 2 Oct 2018 11:36:07 +0300 Subject: [PATCH] More specific exception clause --- Tests/test_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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