Skip to content

Commit 0bb44fd

Browse files
authored
Merge pull request #29 from EBI-Metagenomics/bugfix/retries-when-file-exists
Stop the retries if the file already exists
2 parents 9c37e42 + a320538 commit 0bb44fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fetchtool/abstract_fetch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ def download_raw_file(self, dl_file, dest, dl_md5s):
304304
logging.error(msg)
305305
else:
306306
raise EnvironmentError(msg)
307+
else:
308+
# The file was previously downloaded.
309+
file_downloaded = True
307310

308311
return file_downloaded
309312

0 commit comments

Comments
 (0)