Commit 888bb77f authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Merge branch 'improve_download_script' into 'master'

Testing/download: catch exceptions from shutil

See merge request corryvreckan/corryvreckan!180
parents 832f7815 dc9d1c45
Pipeline #1129137 passed with stages
in 20 minutes and 40 seconds
...@@ -75,7 +75,10 @@ if __name__ == '__main__': ...@@ -75,7 +75,10 @@ if __name__ == '__main__':
target = os.path.join(BASE_TARGET, name) target = os.path.join(BASE_TARGET, name)
if os.path.exists(target) and os.path.isdir(target): if os.path.exists(target) and os.path.isdir(target):
print('\'%s\' deleting existing folder' % target) print('\'%s\' deleting existing folder' % target)
shutil.rmtree(target) shutil.rmtree(target)
except shutil.Error as err:
print('%s' % err)
# Untar anew from tarball # Untar anew from tarball
untar(name) 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