jenkins-bot has submitted this change and it was merged.
Change subject: Report unexpected API error contents ......................................................................
Report unexpected API error contents
Bug: T109945 Change-Id: Ic5a8bd4258bae466b49c7cb883e0fa78a35b3d46 --- M pywikibot/data/api.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index b9df112..11987bb 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -2022,7 +2022,8 @@ if key == 'error': continue assert key not in error - assert isinstance(result[key], basestring) + assert isinstance(result[key], basestring), \ + 'Unexpected %s: %r' % (key, result[key]) error[key] = result[key]
if "*" in result["error"]:
pywikibot-commits@lists.wikimedia.org