From 82bbef1f9b3b6f2301b26c45c7b6a9b714056efe Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 8 Dec 2022 21:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/CBZUtils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/CBZUtils.py b/utils/CBZUtils.py index 3f69087..3b3fd73 100644 --- a/utils/CBZUtils.py +++ b/utils/CBZUtils.py @@ -52,6 +52,9 @@ class CBZUtils: dirs = os.listdir(chapter_path) for file in dirs: if file.startswith("scramble="): - os.remove(file) + try: + os.remove(file) + except: + print(f"删除 {file} 发生错误,已跳过") cls.zip_compression(chapter_path,packCBZ_path+".CBZ") comicInfo.nextCBZToDoneChapter() \ No newline at end of file