jenkins-bot has submitted this change and it was merged.

Change subject: Catch all Exceptions in harvest_template
......................................................................


Catch all Exceptions in harvest_template

When an Exception is raised, print the exception and continue
with the next page instead of aborting.

Change-Id: I61fcf6fdd04adb92324437f2a79e9ce5ee483fc0
---
M scripts/harvest_template.py
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 40e43a3..89b034a 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -75,7 +75,10 @@
         """
         self.templateTitles = self.getTemplateSynonyms(self.templateTitle)
         for page in self.generator:
-            self.procesPage(page)
+            try:
+                self.procesPage(page)
+            except Exception, e:
+                pywikibot.exception(tb=True)
 
     def getTemplateSynonyms(self, title):
         """

-- 
To view, visit https://gerrit.wikimedia.org/r/84004
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I61fcf6fdd04adb92324437f2a79e9ce5ee483fc0
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to