avoid pillow warning

This commit is contained in:
ed 2025-07-07 12:58:03 +00:00
parent 4f264a0a9c
commit f6be390579

View file

@ -96,9 +96,7 @@ try:
if os.environ.get("PRTY_NO_PIL_AVIF"): if os.environ.get("PRTY_NO_PIL_AVIF"):
raise Exception() raise Exception()
from PIL import features as piltures if ".avif" in Image.registered_extensions():
if piltures.check("avif"):
HAVE_AVIF = True HAVE_AVIF = True
raise Exception() raise Exception()