This commit is contained in:
caiwx86 2023-01-16 03:48:35 +08:00
parent 4fa9bf4f3f
commit 54cf282837

View File

@ -209,6 +209,7 @@ class fileUtils:
img.verify()
return True
except:
os.remove(file_path)
if os.path.exists(file_path):
os.remove(file_path)
print(f"{file_path}已损坏 type:{type},删除重试中")
return False