diff --git a/xcube_stac/helper.py b/xcube_stac/helper.py index 2fdb5cf..46d689c 100644 --- a/xcube_stac/helper.py +++ b/xcube_stac/helper.py @@ -366,7 +366,9 @@ def parse_item(self, item: pystac.Item, **open_params) -> pystac.Item: hrefs = self._fs.glob( f"{href_base}/**/*_{asset_name}_{res_select}m.jp2" ) - assert len(hrefs) == 1, "No unique jp2 file found" + assert ( + len(hrefs) == 1 + ), f"No unique jp2 file found; these hrefs were found {hrefs} for {href_base}/**/*_{asset_name}_{res_select}m.jp2" href_mod = hrefs[0] time_end = hrefs[0].split("/IMG_DATA/")[0][-15:] else: