修复删除报错
This commit is contained in:
+4
-1
@@ -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()
|
||||
Reference in New Issue
Block a user