Force the output and variant names to be strs
This commit is contained in:
parent
d104c06cef
commit
befbcc3fe3
|
|
@ -50,7 +50,7 @@ class CfgYamlReader(object):
|
||||||
|
|
||||||
def _parse_output(self, o_tree):
|
def _parse_output(self, o_tree):
|
||||||
try:
|
try:
|
||||||
name = o_tree['name']
|
name = str(o_tree['name'])
|
||||||
if not name:
|
if not name:
|
||||||
raise KeyError
|
raise KeyError
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
@ -98,7 +98,7 @@ class CfgYamlReader(object):
|
||||||
def _parse_variant(self, o_tree, kind, reg_class):
|
def _parse_variant(self, o_tree, kind, reg_class):
|
||||||
kind_f = kind[0].upper()+kind[1:]
|
kind_f = kind[0].upper()+kind[1:]
|
||||||
try:
|
try:
|
||||||
name = o_tree['name']
|
name = str(o_tree['name'])
|
||||||
if not name:
|
if not name:
|
||||||
raise KeyError
|
raise KeyError
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue