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: -- To view, visit https://gerrit.wikimedia.org/r/98458 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I770022be418e7d904ab22138f8524e8d3ac581cd Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/compat Gerrit-Branch: master Gerrit-Owner: DrTrigon <dr.tri...@surfeu.ch> Gerrit-Reviewer: DrTrigon <dr.tri...@surfeu.ch> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits