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