未验证 提交 d9911f61 编写于 作者: L littletomatodonkey 提交者: GitHub

Update config.py

上级 2e6dfa44
...@@ -137,7 +137,7 @@ def override(dl, ks, v): ...@@ -137,7 +137,7 @@ def override(dl, ks, v):
if len(ks) == 1: if len(ks) == 1:
# assert ks[0] in dl, ('{} is not exist in {}'.format(ks[0], dl)) # assert ks[0] in dl, ('{} is not exist in {}'.format(ks[0], dl))
if not ks[0] in dl: if not ks[0] in dl:
logger.warning('A new filed ({}) detected!'.format(ks[0], dl)) print('A new filed ({}) detected!'.format(ks[0], dl))
dl[ks[0]] = str2num(v) dl[ks[0]] = str2num(v)
else: else:
override(dl[ks[0]], ks[1:], v) override(dl[ks[0]], ks[1:], v)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册