fix
This commit is contained in:
parent
4fa9bf4f3f
commit
54cf282837
@ -209,6 +209,7 @@ class fileUtils:
|
|||||||
img.verify()
|
img.verify()
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
os.remove(file_path)
|
if os.path.exists(file_path):
|
||||||
|
os.remove(file_path)
|
||||||
print(f"{file_path}已损坏 type:{type},删除重试中")
|
print(f"{file_path}已损坏 type:{type},删除重试中")
|
||||||
return False
|
return False
|
||||||
Loading…
Reference in New Issue
Block a user