Skip to content

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