Skip to content

Commit

Permalink
fix: update DocumentIsPausedError (#11405)
Browse files Browse the repository at this point in the history
  • Loading branch information
huayaoyue6 authored Dec 6, 2024
1 parent 7c979e6 commit 9d97575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tasks/external_document_indexing_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9d97575

Please sign in to comment.