mirror of
https://github.com/9001/copyparty.git
synced 2026-01-03 01:55:34 +10:00
avoid pillow warning
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user