Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: update DocumentIsPausedError (#11405)

huayaoyue69d975750bce2
diff --git a/api/tasks/external_document_indexing_task.py b/api/tasks/external_document_indexing_task.py
index 6fc719ae8d0..69f3072e2de 100644
--- a/api/tasks/external_document_indexing_task.py
+++ b/api/tasks/external_document_indexing_task.py
@@ -5,7 +5,7 @@ import time
import click
from celery import shared_task
-from core.indexing_runner import DocumentIsPausedException
+from core.indexing_runner import DocumentIsPausedError
from extensions.ext_database import db
from extensions.ext_storage import storage
from models.dataset import Dataset, ExternalKnowledgeApis
@@ -86,7 +86,7 @@ def external_document_indexing_task(
fg="green",
)
)
- except DocumentIsPausedException as ex:
+ except DocumentIsPausedError as ex:
logging.info(click.style(str(ex), fg="yellow"))
except Exception: