Enabled the variants exception catch.
Now the variants configuration can raise exceptions.
This commit is contained in:
parent
8a2810fd8d
commit
563c00cc5b
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue