Skip to content

AttributeError when fetching varity #95

Description

@hrolfrc

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions