Merge 310f8eef69 into 9562a974d2
This commit is contained in:
commit
b46516b5ae
1 changed files with 5 additions and 2 deletions
|
|
@ -1650,8 +1650,11 @@ class LightRAG:
|
||||||
"latest_message": "",
|
"latest_message": "",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
# Cleaning history_messages without breaking it as a shared list object
|
#Fix: Check if key exists before deleting to prevent KeyError
|
||||||
del pipeline_status["history_messages"][:]
|
if "history_messages" in pipeline_status:
|
||||||
|
del pipeline_status["history_messages"][:]
|
||||||
|
else:
|
||||||
|
pipeline_status["history_messages"] = []
|
||||||
else:
|
else:
|
||||||
# Another process is busy, just set request flag and return
|
# Another process is busy, just set request flag and return
|
||||||
pipeline_status["request_pending"] = True
|
pipeline_status["request_pending"] = True
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue