修复删除报错
This commit is contained in:
1 parent
e0ad6a64d5
commit
82bbef1f9b
1 file changed
+4
-1
+4
-1
@@ -52,6 +52,9 @@ class CBZUtils:
|
|||||||
dirs = os.listdir(chapter_path)
|
dirs = os.listdir(chapter_path)
|
||||||
for file in dirs:
|
for file in dirs:
|
||||||
if file.startswith("scramble="):
|
if file.startswith("scramble="):
|
||||||
os.remove(file)
|
try:
|
||||||
|
os.remove(file)
|
||||||
|
except:
|
||||||
|
print(f"删除 {file} 发生错误,已跳过")
|
||||||
cls.zip_compression(chapter_path,packCBZ_path+".CBZ")
|
cls.zip_compression(chapter_path,packCBZ_path+".CBZ")
|
||||||
comicInfo.nextCBZToDoneChapter()
|
comicInfo.nextCBZToDoneChapter()
|
||||||
Reference in new issue
Block a user