1
0
Fork 0

added better log message

This commit is contained in:
Christian Kühnel 2020-04-16 10:12:57 +02:00
parent eaa931da8c
commit b2c68fa9be

View file

@ -157,7 +157,8 @@ def secure_delete(path: str):
try:
shutil.rmtree(path)
except PermissionError:
pass
if error_limit <= 0:
raise
time.sleep(3)
raise IOError('Could not delete build folder after several tries: {}'.format(path))