Page MenuHomePhabricator

Missing code alias for 'rup'
Closed, ResolvedPublicBUG REPORT

Description

======================================================================
ERROR: testLinks (tests.page_tests.TestPageObject)
Test the different types of links from a page.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pywikibot/pywikibot/tests/page_tests.py", line 543, in testLinks
    for p in mainpage.langlinks():
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_basepage.py", line 1606, in langlinks
    self._langlinks = set(self.iterlanglinks(include_obsolete=True))
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_generators.py", line 897, in pagelanglinks
    link = pywikibot.Link.langlinkUnsafe(linkdata['lang'],
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_links.py", line 591, in langlinkUnsafe
    link._site = pywikibot.Site(lang, source.family.name)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/__init__.py", line 254, in Site
    _sites[key] = interface(code=code, fam=fam, user=user)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py", line 129, in __init__
    super().__init__(code, fam, user)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_basesite.py", line 90, in __init__
    raise UnknownSiteError(error_msg)
pywikibot.exceptions.UnknownSiteError: Language 'rup' does not exist in family wikipedia

======================================================================

Details

Related Changes in Gerrit:

Event Timeline

Xqt triaged this task as High priority.
Xqt changed the subtype of this task from "Task" to "Bug Report".

Change #1170087 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] L10N: Add code alias rup for roa-rup

https://gerrit.wikimedia.org/r/1170087

Change #1170087 merged by jenkins-bot:

[pywikibot/core@master] L10N: Add code alias rup for roa-rup

https://gerrit.wikimedia.org/r/1170087