r50503 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50502‎ | r50503 | r50504 >
Date:02:51, 12 May 2009
Author:tomasz
Status:deferred
Tags:
Comment:
Adding try block to not explode when there is a template error
Modified paths:
  • /trunk/backup/worker.py (modified) (history)

Diff [purge]

Index: trunk/backup/worker.py
@@ -341,10 +341,13 @@
342342
343343 def saveStatus(self, items, done=False):
344344 """Write out an HTML file with the status for this wiki's dump and links to completed files."""
345 - self.wiki.writeIndex(self.reportStatus(items, done))
346 -
347 - # Short line for report extraction
348 - self.wiki.writeStatus(self.reportDatabase(items, done))
 345+ try:
 346+ self.wiki.writeIndex(self.reportStatus(items, done))
 347+
 348+ # Short line for report extraction
 349+ self.wiki.writeStatus(self.reportDatabase(items, done))
 350+ except:
 351+ print "Couldn't update status files. Continuing anyways"
349352
350353 def progressReports(self):
351354 status = {}

Status & tagging log