jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Wikidataquery: raise ServerError correctly
......................................................................
[FIX] Wikidataquery: raise ServerError correctly
Change-Id: If0513951d0e31a8b1697443856556e20b402c5d5
---
M pywikibot/data/wikidataquery.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/wikidataquery.py b/pywikibot/data/wikidataquery.py
index c3eaf35..5ad6bed 100644
--- a/pywikibot/data/wikidataquery.py
+++ b/pywikibot/data/wikidataquery.py
@@ -567,7 +567,7 @@
data = json.loads(resp)
except ValueError:
pywikibot.warning(u"Data received from host but no JSON could be
decoded")
- raise pywikibot.ServerError
+ raise pywikibot.ServerError("Data received from host but no JSON could
be decoded")
return data
--
To view, visit
https://gerrit.wikimedia.org/r/176330
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If0513951d0e31a8b1697443856556e20b402c5d5
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>