Commit dc9d1c45 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Testing/download: catch exceptions from shutil

parent 832f7815
Pipeline #1126882 passed with stages
in 16 minutes and 59 seconds
......@@ -75,7 +75,10 @@ if __name__ == '__main__':
target = os.path.join(BASE_TARGET, name)
if os.path.exists(target) and os.path.isdir(target):
print('\'%s\' deleting existing folder' % target)
shutil.rmtree(target)
try:
shutil.rmtree(target)
except shutil.Error as err:
print('%s' % err)
# Untar anew from tarball
untar(name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment