Skip to content

Commit

Permalink
Merge pull request #1282 from arenadata/ADCM-2358
Browse files Browse the repository at this point in the history
ADCM-2358 add ruyaml ComposerError to processing bundle config
  • Loading branch information
SofiaTal authored Nov 19, 2021
2 parents 275b1ca + 63318d6 commit 394e46e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cm/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def check_adcm_config(conf_file):
except ruyaml.constructor.DuplicateKeyError as e:
msg = f'{e.context}\n{e.context_mark}\n{e.problem}\n{e.problem_mark}'
err('STACK_LOAD_ERROR', f'Duplicate Keys error: {msg}')
except ruyaml.composer.ComposerError as e:
err('STACK_LOAD_ERROR', f'YAML Composer error: {e}')
try:
cm.checker.check(data, rules)
return data
Expand Down

0 comments on commit 394e46e

Please sign in to comment.