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