Fix raise exception when overriding params
@@ -147,9 +147,12 @@ def override(dl, ks, v):
if len(ks) == 1:
# assert ks[0] in dl, ('{} is not exist in {}'.format(ks[0], dl))
if not ks[0] in dl:
- logger.warning('A new filed ({}) detected!'.format(ks[0], dl))
+ logger.warning('A new filed ({}) detected!'.format(ks[0]))
dl[ks[0]] = str2num(v)
else:
+ if not ks[0] in dl:
+ logger.warning('A new filed ({}) detected!'.format(ks[0]))
+ dl[ks[0]] = {}
override(dl[ks[0]], ks[1:], v)
