From 63318d66d1af289892bcbbcbdf2f5b34446d7595 Mon Sep 17 00:00:00 2001 From: Talavrinova Sofya Date: Fri, 19 Nov 2021 11:22:29 +0300 Subject: [PATCH] ADCM-2358 add ruyaml COmposerError to processing bundle config --- python/cm/stack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/cm/stack.py b/python/cm/stack.py index f519e98a7e..c86e0dc9fd 100644 --- a/python/cm/stack.py +++ b/python/cm/stack.py @@ -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