Enabled the variants exception catch.

Now the variants configuration can raise exceptions.
This commit is contained in:
Salvador E. Tropea 2020-09-01 18:47:38 -03:00
parent 8a2810fd8d
commit 563c00cc5b
1 changed files with 4 additions and 6 deletions

View File

@ -109,12 +109,10 @@ class CfgYamlReader(object):
logger.debug("Parsing "+kind+" "+name_type)
o_var = reg_class.get_class_for(otype)()
o_var.set_tree(o_tree)
# No errors yet
# try:
# o_var.config()
# except KiPlotConfigurationError as e:
# config_error("In section `"+name_type+"`: "+str(e))
o_var.config()
try:
o_var.config()
except KiPlotConfigurationError as e:
config_error("In section `"+name_type+"`: "+str(e))
return o_var
def _parse_variants(self, v):