mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +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")
|
||||
).first()
|
||||
|
||||
if not dataset:
|
||||
return None
|
||||
|
||||
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user