From f3803a823c7bb0afd7ab6064625908dca0be3476 Mon Sep 17 00:00:00 2001 From: Brandon N Benton Date: Fri, 18 Aug 2023 18:55:10 -0700 Subject: [PATCH] Update era_downloader.py --- sup3r/utilities/era_downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sup3r/utilities/era_downloader.py b/sup3r/utilities/era_downloader.py index 8aff26114..d2f067fcc 100644 --- a/sup3r/utilities/era_downloader.py +++ b/sup3r/utilities/era_downloader.py @@ -554,7 +554,7 @@ def get_monthly_file(self, interp_workers=None, **interp_kwargs): if self.run_interp: self.run_interpolation(max_workers=interp_workers, **interp_kwargs) - if os.path.exists(self.interp_file): + if self.interp_file is not None and os.path.exists(self.interp_file): if self.already_pruned(self.interp_file): logger.info(f'{self.interp_file} pruned already.') else: