| Anomie added a comment. |
In T210657#4784221, @Xqt wrote:Is that really right? Can’t see any changes for the code but it was announced that it will be just “internal_api_error”
The code is not changing yet in 1.33.0-wmf.8, so we can avoid breaking your existing code that's looking for "internal_api_error_". It will change in the future.
You should update your code to recognize both "internal_api_error" and "internal_api_error_ExceptionClass" as internal errors, and in either case when the 'errorclass' field is present you should prefer that to the suffix of the code.
In T210657#4784324, @Xqt wrote:@Anomie As I can see there is a new key "errors". Is it intended to have these multiple errors for all api errors or for this internal_api_error only. (In that case the whole Request.submit() method of pwb must be rewritten.
You get an "errors" array rather than a single "error" object if you supply the errorformat parameter with any value except bc. That will affect all API errors. It's also how you can get errors in languages other than English, see T37074.
Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill, Anomie, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
