From 0d4897fc49123971b43309398b3fbf31308ddd87 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 10 Feb 2025 20:28:15 +0800 Subject: [PATCH] fix --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 1e9a3e5..795d922 100644 --- a/test.py +++ b/test.py @@ -119,7 +119,8 @@ class comicInfo: # 收集图片路径 image_paths = [page.get('Image') for page in page_list if page.get('Image')] - + if len(image_paths) == 0: + raise exit(f"{cbz_path} {image_paths} 为空") # 处理每个图片文件 for img_path in image_paths: actual_path = self.find_actual_path(cbz, img_path+".jpg")