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

Handle words without grammar information #120

Merged
merged 1 commit into from
Jan 17, 2021

Conversation

pajowu
Copy link
Contributor

@pajowu pajowu commented Jan 9, 2021

Before this commit, grammar_raw returned None if no #grammatik element is found. This leads to TypeError in Word.grammar and seems unintuitive, since in other cases an empty list is retuned (see GH-21).
Now grammar_raw returns an empty list if no grammar section is found.

Before this commit, grammar_raw returned None if no '.grammatik' element is found. This leads to TypeError in 'Word.grammar' and seems unintuitive, since in other cases an empty list is retuned (see radomirbosakGH-21).
Now grammar_raw returns an empty list if no grammar section is found.
@radomirbosak radomirbosak merged commit 1213d4f into radomirbosak:master Jan 17, 2021
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