mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Use parse_obj instead of parse_raw as incoming data is in dict
This commit is contained in:
parent
faf1df47fe
commit
87a6c2d716
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def cli(args=None):
|
|||
with open(get_absolute_path(args.config_file), 'r', encoding='utf-8') as config_file:
|
||||
config_from_file = yaml.safe_load(config_file)
|
||||
args.config = merge_dicts(priority_dict=config_from_file, default_dict=args.config)
|
||||
args.config = FullConfig.parse_raw(json.dumps(args.config))
|
||||
args.config = FullConfig.parse_obj(args.config)
|
||||
|
||||
if args.org_files:
|
||||
args.config['content-type']['org']['input-files'] = args.org_files
|
||||
|
|
Loading…
Reference in a new issue