Skip to content

Commit

Permalink
Merge pull request #29 from EBI-Metagenomics/bugfix/retries-when-file…
Browse files Browse the repository at this point in the history
…-exists

Stop the retries if the file already exists
  • Loading branch information
mberacochea authored Oct 2, 2024
2 parents 9c37e42 + a320538 commit 0bb44fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fetchtool/abstract_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ def download_raw_file(self, dl_file, dest, dl_md5s):
logging.error(msg)
else:
raise EnvironmentError(msg)
else:
# The file was previously downloaded.
file_downloaded = True

return file_downloaded

Expand Down

0 comments on commit 0bb44fd

Please sign in to comment.