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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user