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

Fix empty error message thrown upon 404 pages #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bejado
Copy link
Contributor

@bejado bejado commented Jun 14, 2024

This fixes an empty message box shown when search results return a 404.

When Anki encounters an uncaught custom exception, it uses the __str__ method to determine the error message. Since these exceptions didn’t have __str__ defined, the error message was empty. I also added a new exception superclass, AnkiForvoException to help debug this in the future.

Fixes #106

@mikewcaldwell
Copy link
Contributor

I can confirm I see the same empty error message. The fix looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty alert dialog
2 participants