From f00fafaa435ee8769f3161b167355a62bd56ae75 Mon Sep 17 00:00:00 2001 From: Reid Sunderland Date: Tue, 25 Jun 2024 18:39:46 +0000 Subject: [PATCH] Another bug fix, never encountered that before --- sarracenia/flowcb/poll/nasa_cmr.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sarracenia/flowcb/poll/nasa_cmr.py b/sarracenia/flowcb/poll/nasa_cmr.py index 74464e4af..f1fa41cd3 100644 --- a/sarracenia/flowcb/poll/nasa_cmr.py +++ b/sarracenia/flowcb/poll/nasa_cmr.py @@ -20,6 +20,8 @@ https://urs.earthdata.nasa.gov/ The corresponding download configuration (e.g. a sarra or subscribe config) will need to use the ``authenticate.nasa_earthdata`` plugin. + See here: https://github.com/MetPX/sarracenia/blob/development/sarracenia/flowcb/authenticate/nasa_earthdata.py + This code is based on https://github.com/podaac/tutorials/blob/master/notebooks/opendap/MUR-OPeNDAP.ipynb @@ -282,6 +284,9 @@ def poll(self) -> list: # and metadata (e.g. md5 check sums) data_url = None md5_url = None + if 'RelatedUrls' not in itm['umm']: + logger.debug(f"No RelatedUrls in {itm['umm']}") + continue for url in itm['umm']['RelatedUrls']: if self.stop_requested: logger.info("Received a request to stop. Aborting poll and returning an empty list.")