DrTrigon has submitted this change and it was merged.
Change subject: work-a-round; for "MaxTriesExceededError", "EditConflict" (and - hopefully - all others) in catimages.py during debug info/log output ......................................................................
work-a-round; for "MaxTriesExceededError", "EditConflict" (and - hopefully - all others) in catimages.py during debug info/log output
Change-Id: I770022be418e7d904ab22138f8524e8d3ac581cd --- M catimages.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: DrTrigon: Verified; Looks good to me, approved
diff --git a/catimages.py b/catimages.py index e91084f..b748658 100644 --- a/catimages.py +++ b/catimages.py @@ -4422,7 +4422,7 @@ % len(tmp[:pos])) outpage.put(tmp[:pos], comment="bot writing log for last run") tmp = tmp[pos:] - except pywikibot.MaxTriesExceededError: + except: # catch MaxTriesExceededError, EditConflict and all other pywikibot.exception() pywikibot.output(u"Problem writing debug info to wiki, using file instead.") if pywikibot.simulate or tmp: