You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wikipediaapi/__init__.py", line 949, in langlinks
self._fetch('langlinks')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wikipediaapi/__init__.py", line 1017, in _fetch
getattr(self.wiki, '_' + call)(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wikipediaapi/__init__.py", line 322, in _langlinks
return self._build_langlinks(v, page)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wikipediaapi/__init__.py", line 561, in _build_langlinks
for langlink in extract['langlinks']:
KeyError: 'langlinks'
The text was updated successfully, but these errors were encountered:
Hi,
looks like there is an KeyError when trying to access
langlinks
from a page without external links to other languages.I get:
The text was updated successfully, but these errors were encountered: