mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
catch IOError when copying xml files back
This commit is contained in:
parent
23bd38ad66
commit
a5c1410e23
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ class DownloadArtifacts(object):
|
|||
|
||||
def _do_download(self, remote, local):
|
||||
print('Copying from {0} to {1}'.format(remote, local))
|
||||
self.client.get(remote, local)
|
||||
try:
|
||||
self.client.get(remote, local)
|
||||
except IOError:
|
||||
print('Failed to copy: {0}'.format(remote))
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Jenkins Artifact Download Helper')
|
||||
|
|
Loading…
Add table
Reference in a new issue