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: 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))