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']:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/812520
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I1d5d4029b6b3044a5bac9a0af079d077f73325b3
Gerrit-Change-Number: 812520
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to