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): """