提交 e8435f61 编写于 作者: G gaotingquan 提交者: Tingquan Gao

Fix raise exception when overriding params

上级 64fad361
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册