jenkins-bot has submitted this change and it was merged.
Change subject: Ignore warnings when building APIError
......................................................................
Ignore warnings when building APIError
Bug: T109945
Change-Id: I2bc55a7dab67e56292eda4c2c8bc20b0a60d7a9b
---
M pywikibot/data/api.py
1 file changed, 1 insertion(+), 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 11987bb..c85f851 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -2019,7 +2019,7 @@
error = result['error'].copy()
for key in result:
- if key == 'error':
+ if key in ('error', 'warnings'):
continue
assert key not in error
assert isinstance(result[key], basestring), \
--
To view, visit
https://gerrit.wikimedia.org/r/234465
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2bc55a7dab67e56292eda4c2c8bc20b0a60d7a9b
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>