Do not fail in update.py if a product cannot be loaded (#357)

Such errors prevent the script to run.
This commit is contained in:
Marc Wrobel
2024-07-19 22:58:10 +02:00
committed by GitHub
parent 8119398989
commit 0ade677365

View File

@@ -115,7 +115,10 @@ def list_products(products_filter: str = None) -> list[ProductFrontmatter]:
if products_filter and product_name != products_filter:
continue
products.append(ProductFrontmatter(product_name))
try:
products.append(ProductFrontmatter(product_name))
except Exception as e:
logging.exception(f"failed to load product data for {product_name}: {e}")
return products