jenkins-bot has submitted this change and it was merged.
Change subject: Temporary hack to fix DataPage.interwiki from throwing an error on Wikivoyage links. ......................................................................
Temporary hack to fix DataPage.interwiki from throwing an error on Wikivoyage links.
Patch by OsamaK
Change-Id: I891c5d12134e2891be661a21853ce88ea82d2554 --- M wikipedia.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/wikipedia.py b/wikipedia.py index eba0e71..2b25c08 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -4716,7 +4716,8 @@ self._interwiki = [Page(getSite(code.replace('wiki', '').replace('_', '-'), fam='wikipedia'), - links[code]) for code in links] + links[code]) for code in links + if code.endswith('wiki')] return self._interwiki
def linktitles(self):