Revision: 7164 Author: siebrand Date: 2009-08-20 20:44:49 +0000 (Thu, 20 Aug 2009)
Log Message: ----------- Return instead of go on an crash.
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/image_replacer.py
Modified: trunk/pywikipedia/commonsdelinker/image_replacer.py =================================================================== --- trunk/pywikipedia/commonsdelinker/image_replacer.py 2009-08-18 11:39:18 UTC (rev 7163) +++ trunk/pywikipedia/commonsdelinker/image_replacer.py 2009-08-20 20:44:49 UTC (rev 7164) @@ -285,7 +285,7 @@ return except wikipedia.IsRedirectPage: output(u'Warning! %s is a redirect; not reporting replacement!' % old_image) - + return try: page.put(u'%s\n%s' % (template, text), comment = u'This image has been replaced by ' + new_image)