We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0768be commit 51fc07fCopy full SHA for 51fc07f
apps/dc_tools/odc/apps/dc_tools/stac_api_to_dc.py
@@ -85,6 +85,13 @@ def item_to_meta_uri(
85
product_name_sanitised = product_name.replace("-", "_")
86
product = dc.index.products.get_by_name(product_name_sanitised)
87
88
+ if product is None:
89
+ logging.warning(
90
+ "Couldn't find matching product for product name: %s",
91
+ product_name_sanitised,
92
+ )
93
+ raise SkippedException(f"Couldn't find matching product for product name: {product_name_sanitised}")
94
+
95
# Convert the STAC Item to a Dataset
96
dataset = next(stac2ds([item]))
97
# And assign the product ID
0 commit comments