goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.89k stars 519 forks source link

Fix title retrieval in page function. #287

Open PhoenixCreation opened 3 years ago

PhoenixCreation commented 3 years ago

Problem

Cause of Problem

Changes

Fixes

wlerin commented 2 years ago

If results[0] is not available this will throw an IndexError, not set title to suggestion.