Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update reference to renamed exception class:DocumentIsPausedError #11403

Closed
5 tasks done
huayaoyue6 opened this issue Dec 5, 2024 · 1 comment · Fixed by #11405
Closed
5 tasks done

update reference to renamed exception class:DocumentIsPausedError #11403

huayaoyue6 opened this issue Dec 5, 2024 · 1 comment · Fixed by #11405
Labels
💪 enhancement New feature or request

Comments

@huayaoyue6
Copy link
Contributor

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

The external_document_indexing_task imports an undeclared exception class named DocumentIsPausedException, which was renamed to DocumentIsPausedError on September 11, 2024. Therefore, the reference needs to be updated to the latest version.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Copy link

dosubot bot commented Dec 5, 2024

@huayaoyue6 Hello there! I'm Dosu, a bot here to help you with bug fixes, answer questions, and assist you in becoming a contributor. I'll be here to support you while we wait for a human maintainer.

To address the issue of the undeclared exception class DocumentIsPausedException being renamed to DocumentIsPausedError, you need to update the import statement and the exception handling block in the external_document_indexing_task. Here's how you can do it:

  1. Update the import statement:

    from core.indexing_runner import DocumentIsPausedError
  2. Update the exception handling block:

    except DocumentIsPausedError as ex:
        logging.info(click.style(str(ex), fg="yellow"))

Make sure to replace all occurrences of DocumentIsPausedException with DocumentIsPausedError in the file [1].

To continue talking to Dosu, mention @dosu.

@huayaoyue6 huayaoyue6 changed the title task import an undeclared exception class update reference to renamed exception class:DocumentIsPausedError Dec 5, 2024
@dosubot dosubot bot added the 💪 enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant