From f6be3905796099bb2ad495d78b699641e0f5ccf3 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Jul 2025 12:58:03 +0000 Subject: [PATCH] avoid pillow warning --- copyparty/th_srv.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 2ccba677..59c440e9 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -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()