Page MenuHomePhabricator

vikidia familiy file does not include nl site
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

The nl site is outside the vikidia.org domain and can be found at wikikids.nl.

>>> import pywikibot
>>> s = pywikibot.Site('vikidia:nl')

What happens?:

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    s = pywikibot.Site('vikidia:nl')
  File "D:\pwb\GIT\core\pywikibot\__init__.py", line 265, in Site
    _sites[key] = interface(code=code, fam=fam, user=user)
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 118, in __init__
    super().__init__(code, fam, user)
  File "D:\pwb\GIT\core\pywikibot\site\_basesite.py", line 90, in __init__
    raise UnknownSiteError(error_msg)
pywikibot.exceptions.UnknownSiteError: Language 'nl' does not exist in family vikidia

What should have happened instead?:

The site object should be instantiated and work as usual:

>>> import pywikibot
>>> s = pywikibot.Site('vikidia:nl')
>>> s.mediawiki_message('ok')
OK

Event Timeline

Xqt triaged this task as Low priority.

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

[pywikibot/core@master] [IMPR] enable vikidia:nl site

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

Change 970400 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] enable vikidia:nl site

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