Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
888bb77f
Commit
888bb77f
authored
Oct 02, 2019
by
Jens Kroeger
Browse files
Merge branch 'improve_download_script' into 'master'
Testing/download: catch exceptions from shutil See merge request
!180
parents
832f7815
dc9d1c45
Pipeline
#1129137
passed with stages
in 20 minutes and 40 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
testing/download_data.py
View file @
888bb77f
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment