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:
pywikibot-commits@lists.wikimedia.org