XZise added a comment.
In https://phabricator.wikimedia.org/T74674#965633, @JAnD wrote:
not only 'za', all non-existing codes (somebady copied interwiki from WP to Wikt => many unrecognized codes)
Okay `za` is an closed wiki but the API https://za.wiktionary.org/w/api.php still works like any other wiktionary. So to fix that the `Family` class in `pywikibot.families.wikitionary` should support `za` in `langs`. Now I'm not sure if there are obsolete codes where this doesn't apply. If that is not the case one fix would be to add the `obsolete` codes to `langs` or to not only check `langs` in `pywikibot.family.Family.hostname` but also `obsolete`. Otherwise `obsolete` need to differ between just //closed// wikis and //removed// wikis.
But your problem with `ht` is different (as explained above). Also why “not just”: That file has 2k+ lines and unline `pywikibot.site` or `pywikibot.page` which are also quite large, is the script one section. So to understand it you have know how it works.
TASK DETAIL https://phabricator.wikimedia.org/T74674
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: pywikipedia-bugs, XZise, JAnD, Mpaa, Kronf, jayvdb
pywikipedia-bugs@lists.wikimedia.org