catch IOError when copying xml files back

This commit is contained in:
Daniel Wallace 2017-12-20 18:26:18 -07:00
parent 23bd38ad66
commit a5c1410e23
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -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')