Improve error handling in update.py

This commit is contained in:
Marc Wrobel
2024-07-25 20:42:36 +02:00
parent c42f971e4a
commit 56793d87dd

View File

@@ -106,6 +106,7 @@ def run_scripts(summary: GitHubStepSummary, product_filter: str) -> bool:
continue continue
with GitHubGroup(product.name): with GitHubGroup(product.name):
try:
__delete_data(product) __delete_data(product)
for config in product.auto_configs(): for config in product.auto_configs():
success = __run_script(product, config, exec_summary) success = __run_script(product, config, exec_summary)
@@ -113,6 +114,9 @@ def run_scripts(summary: GitHubStepSummary, product_filter: str) -> bool:
__revert_data(product) __revert_data(product)
break # stop running scripts for this product break # stop running scripts for this product
except BaseException:
logging.exception(f"Skipping {product.name}, there was an error while running its scripts")
exec_summary.print_summary(summary) exec_summary.print_summary(summary)
return exec_summary.any_failure() return exec_summary.any_failure()