This commit is contained in:
caiwx86 2024-11-14 23:09:40 +08:00
parent befc31519d
commit 6de9b7b718

View File

@ -539,7 +539,10 @@ class CBZUtils:
time.sleep(0.1)
if remove: shutil.rmtree(src_dir)
# validation
return cls.comic_cbz_validate(dts_path)
try:
return cls.comic_cbz_validate(dts_path)
except Exception as e:
os.path.remove(dts_path)
@classmethod
def replaceZip(cls, filepath, unpack_dir=None):