mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
stop execution of ETL if there's a YAML schema issue
This commit is contained in:
parent
38304f846f
commit
400746f7fb
1 changed files with 1 additions and 0 deletions
|
@ -357,6 +357,7 @@ def load_yaml_dict_from_file(
|
|||
except ValidationError as e:
|
||||
logger.error(f"Invalid YAML config file {yaml_file_path}")
|
||||
logger.error(e.normalized_messages())
|
||||
sys.exit()
|
||||
|
||||
return yaml_dict
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue