Page MenuHomePhabricator

pywikibot keeps retrying when it should throw an exception
Closed, DuplicatePublic

Description

Author: daniel

Description:
I'm getting a lot of 503 non-JSON response warnings when saving large pages.

A lot of these supposedly failed attempts to save a page secretly succeed
so I want to trap the failure, read the page, and check if it already is in the state that I wanted to write, otherwise I'd just try again.

Now pywikipediabot tries again by itself an apparently infinite amount of times
Despite having set max_retries to 2 in my user-config.py

Here is a paste excerpt from my output (not the two times I forced a keyboard interrupt by Ctrl-C to abort the fruitless retries and enter my manual retry loop, which immediately detects that the save was indeed successful)

http://pastebin.com/Xq1TRtns


Version: core-(2.0)
Severity: normal

Details

Reference
bz56884

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:27 AM
bzimport set Reference to bz56884.
bzimport added a subscriber: Unknown Object (????).

daniel wrote:

"(not the" -> "(note the"

  • This bug has been marked as a duplicate of bug 55219 ***