mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +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
|
||||
|
||||
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"]
|
||||
|
||||
if "offline-chat" in raw_config["processor"]["conversation"]:
|
||||
|
|
Loading…
Reference in a new issue