mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Add additional null checks in the migrate_server_pg script
This commit is contained in:
parent
20df0f5330
commit
2c9496bcf1
1 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,10 @@ def migrate_server_pg(args):
|
||||||
)
|
)
|
||||||
raw_config["version"] = schema_version
|
raw_config["version"] = schema_version
|
||||||
|
|
||||||
if "processor" in raw_config and "conversation" in raw_config["processor"]:
|
if raw_config is None:
|
||||||
|
return args
|
||||||
|
|
||||||
|
if "processor" in raw_config and raw_config["processor"] and "conversation" in raw_config["processor"]:
|
||||||
processor_conversation = raw_config["processor"]["conversation"]
|
processor_conversation = raw_config["processor"]["conversation"]
|
||||||
|
|
||||||
if "offline-chat" in raw_config["processor"]["conversation"]:
|
if "offline-chat" in raw_config["processor"]["conversation"]:
|
||||||
|
|
Loading…
Reference in a new issue