Unverified Commit 2f179d61 authored by takatost's avatar takatost Committed by GitHub

fix: completion error when dataset was deleted (#819)

parent 74575506
...@@ -188,6 +188,9 @@ class OrchestratorRuleParser: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment