jenkins-bot submitted this change.
[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(-)
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 change 812520. To unsubscribe, or for help writing mail filters, visit settings.