fix: handle None values in dataset and document deletion logic (#27083)

This commit is contained in:
Guangdong Liu
2025-10-20 12:52:48 +08:00
committed by GitHub
parent d463bd6323
commit 1b334e6966
3 changed files with 220 additions and 4 deletions

View File

@@ -8,6 +8,6 @@ def handle(sender, **kwargs):
dataset_id = kwargs.get("dataset_id")
doc_form = kwargs.get("doc_form")
file_id = kwargs.get("file_id")
assert dataset_id is not None
assert doc_form is not None
if not dataset_id or not doc_form:
return
clean_document_task.delay(document_id, dataset_id, doc_form, file_id)