jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/812520 )
Change subject: [bugfix] Remove assert statement in api.Request.submit() ......................................................................
[bugfix] Remove assert statement in api.Request.submit()
The assertion was introduced 7 years ago with d179b13 but fails with f068eb9
Bug: T312716 Change-Id: I1d5d4029b6b3044a5bac9a0af079d077f73325b3 --- M pywikibot/data/api/_requests.py 1 file changed, 0 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py index f676a4f..08ac721 100644 --- a/pywikibot/data/api/_requests.py +++ b/pywikibot/data/api/_requests.py @@ -1007,8 +1007,6 @@ if key in ('error', 'warnings'): continue assert key not in error - assert isinstance(result[key], str), \ - 'Unexpected {}: {!r}'.format(key, result[key]) error[key] = result[key]
if '*' in result['error']:
pywikibot-commits@lists.wikimedia.org