mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 18:49:02 +08:00
fix: completion error when dataset was deleted (#819)
This commit is contained in:
parent
7457550673
commit
2f179d61dc
@ -188,6 +188,9 @@ class OrchestratorRuleParser:
|
|||||||
Dataset.id == tool_config.get("id")
|
Dataset.id == tool_config.get("id")
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
|
if not dataset:
|
||||||
|
return None
|
||||||
|
|
||||||
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
|
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user