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