This commit is contained in:
cwx
2023-01-16 03:48:35 +08:00
parent 4fa9bf4f3f
commit 54cf282837
+2 -1
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