# HG changeset patch # User Wise, Catherine (Digital, Acton) # Date 1435200986 -36000 # Node ID dd8e0066e9f508a317d2f0e939a234274fc3b2ab # Parent eefb47f4f4384a371cb9a40bfc17ecf1f702d64f I wish there was an easier way to test this. Ugh. diff -r eefb47f4f438 -r dd8e0066e9f5 TrustStoreGalaxyBrowse.py --- 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)