Skip to content

Fix exception in WiktionarySource#131

Merged
1over137 merged 1 commit intoFreeLanguageTools:masterfrom
RasmusRendal:nodefbug
Jan 28, 2024
Merged

Fix exception in WiktionarySource#131
1over137 merged 1 commit intoFreeLanguageTools:masterfrom
RasmusRendal:nodefbug

Conversation

@RasmusRendal
Copy link
Copy Markdown
Contributor

The WiktionarySource depended on the status code to check if a word was defined.
If a word was not defined in the target language, but in some other language, the WiktionarySource would throw a KeyError.
This commit adds a simple check to fix that.

If a word was not defined in the target language, but in some other
language, the WiktionarySource would throw a KeyError
@1over137 1over137 merged commit c35fbf6 into FreeLanguageTools:master Jan 28, 2024
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.

2 participants