mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
avoid pillow warning
This commit is contained in:
parent
4f264a0a9c
commit
f6be390579
|
@ -96,9 +96,7 @@ try:
|
|||
if os.environ.get("PRTY_NO_PIL_AVIF"):
|
||||
raise Exception()
|
||||
|
||||
from PIL import features as piltures
|
||||
|
||||
if piltures.check("avif"):
|
||||
if ".avif" in Image.registered_extensions():
|
||||
HAVE_AVIF = True
|
||||
raise Exception()
|
||||
|
||||
|
|
Loading…
Reference in a new issue