Mercurial > repos > cathywise > truststore_browse
changeset 18:dd8e0066e9f5
I wish there was an easier way to test this. Ugh.
author | Wise, Catherine (Digital, Acton) <Catherine.Wise@csiro.au> |
---|---|
date | Thu, 25 Jun 2015 12:56:26 +1000 |
parents | eefb47f4f438 |
children | bae7471a4741 |
files | TrustStoreGalaxyBrowse.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/TrustStoreGalaxyBrowse.py Thu Jun 25 12:49:20 2015 +1000 +++ b/TrustStoreGalaxyBrowse.py Thu Jun 25 12:56:26 2015 +1000 @@ -72,7 +72,10 @@ os.close(file_handle) gzipped_file.close() - shutil.copy(uncompressed, outputFile) + try: + shutil.copy(uncompressed, outputFile) + except shutil.Error: + pass # If the file is already in the right location, move along. try: os.remove(uncompressed) os.remove(download)