jenkins-bot has submitted this change and it was merged.
Change subject: (bug 66256) decrease api high limit and update the paramstring
......................................................................
(bug 66256) decrease api high limit and update the paramstring
Sometimes Category.articles() does not retrieve any pages but fails
into 503 server error. The given api Request waits some minutes,
halves the limit and restarts the request. Unfortunately the
request paramstring was never updated. This patch solves that bug.
Change-Id: I65c0e8b63555161d9e147776195d97732fc8dc3c
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 47e7912..157a99b 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -3,7 +3,7 @@
Interface functions to Mediawiki's api.php
"""
#
-# (C) Pywikipedia bot team, 2007-12
+# (C) Pywikipedia bot team, 2007-14
#
# Distributed under the terms of the MIT license.
#
@@ -249,8 +249,8 @@
@return: The data retrieved from api.php (a dict)
"""
- paramstring = self.http_params()
while True:
+ paramstring = self.http_params()
action = self.params.get("action", "")
simulate = self._simulate(action)
if simulate:
--
To view, visit
https://gerrit.wikimedia.org/r/137936
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I65c0e8b63555161d9e147776195d97732fc8dc3c
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Russell Blau <russblau(a)imapmail.org>
Gerrit-Reviewer: Steinsplitter <steinsplitter(a)wikipedia.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>