Page MenuHomePhabricator

wikibase-api-not-recognized-language should include the invalid language code
Open, Needs TriagePublic

Description

My bot tried to edit https://www.wikidata.org/wiki/Q20427242 , but failed:

not-recognized-language: The supplied language code was not recognized. [messages:[{u'html': {u'*': u'The supplied language code was not recognized.'}, u'name': u'wikibase-api-not-recognized-language', u'parameters': []}]; help:See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
<class 'pywikibot.exceptions.OtherPageSaveError'>

Besides the fact it's weird that an invalid language is already in use, the message should return the language code of the offending language.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 6 2018, 8:34 PM