added better log message
This commit is contained in:
parent
eaa931da8c
commit
b2c68fa9be
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ def secure_delete(path: str):
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
pass
|
if error_limit <= 0:
|
||||||
|
raise
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
raise IOError('Could not delete build folder after several tries: {}'.format(path))
|
raise IOError('Could not delete build folder after several tries: {}'.format(path))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue