https://bugzilla.wikimedia.org/show_bug.cgi?id=56884
Web browser: ---
Bug ID: 56884
Summary: pywikibot keeps retrying when it should throw an
exception
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: network
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l