修复删除报错

This commit is contained in:
caiwx86 2022-12-08 21:15:21 +08:00
parent e0ad6a64d5
commit 82bbef1f9b

View File

@ -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()