diff --git a/csppfetch/__init__.py b/csppfetch/__init__.py index 58ecc9615e9fea1fe4b7bf3a16b5fdd6769b16a4..1c875310cb0e5973100fc25c4d5b66441e203036 100644 --- a/csppfetch/__init__.py +++ b/csppfetch/__init__.py @@ -840,7 +840,6 @@ class Downloader: logprogress(f"Attempt {attempt}") for fileset in filesets: description = fileset.description - expected = fileset.expected urls_to_files = fileset.urls_to_files logprogress(f" Working on {description}") logging.info(f" files to get: {urls_to_files}") @@ -871,8 +870,13 @@ class Downloader: if all_problems_are_missing_files(problems): raise DownloadsFailedException(f"No usable {self.name} file set is present locally and downloads are disabled") - logging.error("Unable to download any file set, reasons include:") - dump_problems(logging.error, problems) + any_file_is_expected = any([f.expected for f in filesets]) + if any_file_is_expected: + logging.warning("Unable to download any file set, reasons include:") + dump_problems(logging.warning, problems) + else: + logging.info("It was expected that these file sets would not yet be available, and they aren't. Things we encountered while looking for them include:") + dump_problems(logging.info, problems) try: first = problems[0][0]