Being specific with except block

This commit is contained in:
_run 2023-01-08 10:49:27 +04:00 committed by GitHub
parent 8744402efc
commit 6b399ab8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ try:
# noinspection PyPackageRequirements
from PIL import Image
pil_imported = True
except:
except ImportError:
pil_imported = False