mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 15:56:57 +08:00
Fix unrecognized config bug
This commit is contained in:
@@ -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))
|
C.set_region(kwargs.get("region", C["region"] if "region" in C else REG_CN))
|
||||||
|
|
||||||
for k, v in kwargs.items():
|
for k, v in kwargs.items():
|
||||||
C[k] = v
|
|
||||||
if k not in C:
|
if k not in C:
|
||||||
LOG.warning("Unrecognized config %s" % k)
|
LOG.warning("Unrecognized config %s" % k)
|
||||||
|
else:
|
||||||
|
C[k] = v
|
||||||
|
|
||||||
C.resolve_path()
|
C.resolve_path()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user