Add additional null checks in the migrate_server_pg script

This commit is contained in:
sabaimran 2023-11-02 14:55:58 -07:00
parent 20df0f5330
commit 2c9496bcf1

View file

@ -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"]: