Xqt added a comment.
The problem can be simplified by:
>>> site = pywikibot.Site()
>>> site.fromDBName('zh_classicalwiki')
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
s.fromDBName('zh_classicalwiki')
File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 215, in fromDBName
return pywikibot.Site(lang, m_site['code'])
File "D:\pwb\GIT\core\pywikibot\__init__.py", line 253, 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 89, in __init__
raise UnknownSiteError(error_msg)
pywikibot.exceptions.UnknownSiteError: Language 'lzh' does not exist in
family wikipedia
@Shizhao: This issue is already solved in master branch. Do you need an early
backport to stable branch? Otherwise the next merge from master to stable is
planned within the next few weeks.
TASK DETAIL
https://phabricator.wikimedia.org/T346888
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Aklapper, Shizhao, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]