1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-02 10:31:00 +08:00

Fix unrecognized config bug

This commit is contained in:
Zhichong Fang
2021-01-07 14:56:53 +08:00
committed by you-n-g
parent 328cdeda4a
commit 231f37376b

View File

@@ -45,9 +45,10 @@ def init(default_conf="client", **kwargs):
C.set_region(kwargs.get("region", C["region"] if "region" in C else REG_CN))
for k, v in kwargs.items():
C[k] = v
if k not in C:
LOG.warning("Unrecognized config %s" % k)
else:
C[k] = v
C.resolve_path()