Skip to content
Snippets Groups Projects

Resolve "Create parser for variables from the json object"

Merged Juraj Paluba requested to merge 3-create-parser-for-variables-from-the-json-object into develop
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
+ 7
2
@@ -35,5 +35,10 @@ def parser_var_file(var_file):
@@ -35,5 +35,10 @@ def parser_var_file(var_file):
instances of Variable
instances of Variable
"""
"""
variables_raw = yaml.load(var_file, Loader=yaml.FullLoader)
try:
return get_variables(variables_raw)
variables_raw = yaml.load(var_file, Loader=yaml.FullLoader)
 
return get_variables(variables_raw)
 
except Exception as exc:
 
# TODO: Remove this horrendous exception handling!
 
print(f"Something went wrong: {exc}")
 
return None
Loading