mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 01:39:04 +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…
x
Reference in New Issue
Block a user