修复bug
This commit is contained in:
parent
32fd7fdf24
commit
6686308e3b
|
@ -180,7 +180,7 @@ def get_config(yaml_file=fr'{ROOT_DIR}/config/param.yaml', ini_file=fr'{ROOT_DIR
|
||||||
requests.adapters.DEFAULT_RETRIES = 3
|
requests.adapters.DEFAULT_RETRIES = 3
|
||||||
|
|
||||||
config = Setting()
|
config = Setting()
|
||||||
if os.path.exists(yaml_file):
|
if os.path.exists(ini_file):
|
||||||
configparser = ConfigParser()
|
configparser = ConfigParser()
|
||||||
configparser.read(ini_file)
|
configparser.read(ini_file)
|
||||||
config.update_config_parser(configparser)
|
config.update_config_parser(configparser)
|
||||||
|
|
Loading…
Reference in New Issue