Skip to content

Commit

Permalink
Another bug fix, never encountered that before
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Jun 25, 2024
1 parent 2d7b79a commit f00fafa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sarracenia/flowcb/poll/nasa_cmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit f00fafa

Please sign in to comment.