Update generate_flags.py to skip checking for cpc flags when not available

This commit is contained in:
2025-05-21 09:48:19 +02:00
parent 01769f10e0
commit e39c23bbad
2 changed files with 6 additions and 2 deletions

View File

@ -67,6 +67,8 @@ def sync_yaml_files(src_filepath, dest_filepath):
src_yaml = load_yaml(src_filepath)
dest_yaml = load_yaml(dest_filepath)
# TODO validate yaml files first before attempting syncronization
if src_yaml is None or dest_yaml is None:
print(f"Skipping synchronization for {os.path.basename(src_filepath)} due to YAML loading errors.")
return