Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

AttributeError when fetching varity #95

Open
hrolfrc opened this issue Mar 6, 2022 · 0 comments
Open

AttributeError when fetching varity #95

hrolfrc opened this issue Mar 6, 2022 · 0 comments

Comments

@hrolfrc
Copy link

hrolfrc commented Mar 6, 2022

Fetching verity results in an AttributeError, yet verity is in the wiktionary at https://en.wiktionary.org/wiki/verity

Here is the code to reproduce the problem:

from wiktionaryparser import WiktionaryParser
parser = WiktionaryParser()
result = parser.fetch('verity')

The traceback points to line 221, in parse_related_words.

site-packages/wiktionaryparser.py", line 221, in parse_related_words
while not parent_tag.find_all('li'):
AttributeError: 'NoneType' object has no attribute 'find_all'

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

No branches or pull requests

1 participant