Removed built-in io module from try/except block

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

View File

@ -1,11 +1,10 @@
import random
import string
from io import BytesIO
try:
# noinspection PyPackageRequirements
from PIL import Image
from io import BytesIO
pil_imported = True
except:
pil_imported = False