library · inferred from evidence
wikipedia.exceptions
The exceptions module of the wikipedia library.
- Handling DisambiguationError in the python wikipedia library
Catch the exception and use its options attribute: the DisambiguationError carries the list of candidate article titles. Pattern from the maintainer: try: page = wikipedia.page("Recommendation") except wikipedia.exceptions.Disambiguati