From 1953a21225ec7738c86dc987818c425197bbea58 Mon Sep 17 00:00:00 2001 From: narugo1992 <117186571+narugo1992@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:27:55 +0800 Subject: [PATCH] dev(narugo): try fix --- skpick/check/hqimage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skpick/check/hqimage.py b/skpick/check/hqimage.py index 6cbcba5..8181733 100644 --- a/skpick/check/hqimage.py +++ b/skpick/check/hqimage.py @@ -11,6 +11,7 @@ def is_hqimage(file, face_threshold: int = 5000): try: image = Image.open(file) + image.load() except UnidentifiedImageError: return False except OSError: