DrTrigon has uploaded a new change for review.
https://gerrit.wikimedia.org/r/98458
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat
refs/changes/58/98458/1
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: newchange
Gerrit-Change-Id: I770022be418e7d904ab22138f8524e8d3ac581cd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits