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

use dict.get() call when retrieving props form page #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rowan08
Copy link

@rowan08 rowan08 commented Feb 27, 2019

Use dict.get() method to avoid KeyError when a page has no external links. The WikipediaPage.references property will return a blank list instead when this happens.

Fixes issue #93

@TsheringL
Copy link

Use dict.get() method to avoid KeyError when a page has no external links. The WikipediaPage.references property will return a blank list instead when this happens.

Fixes issue #93

The above mentioned solution doesn't fix the keyerror.

@medecau medecau mentioned this pull request Feb 21, 2023
23 tasks
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