From a320538f10c302013110a271dcab9ec613bce1c9 Mon Sep 17 00:00:00 2001 From: Martin Beracochea Date: Wed, 2 Oct 2024 16:15:30 +0100 Subject: [PATCH] The system is retrying even if the file already exists. --- fetchtool/abstract_fetch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fetchtool/abstract_fetch.py b/fetchtool/abstract_fetch.py index f76269a..6f9a4de 100644 --- a/fetchtool/abstract_fetch.py +++ b/fetchtool/abstract_fetch.py @@ -302,6 +302,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