Revision: 4856 Author: btongminh Date: 2008-01-12 13:46:12 +0000 (Sat, 12 Jan 2008)
Log Message: ----------- PageNotSaved -> wikipedia.PageNotSaved
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/image_replacer.py
Modified: trunk/pywikipedia/commonsdelinker/image_replacer.py =================================================================== --- trunk/pywikipedia/commonsdelinker/image_replacer.py 2008-01-12 12:50:31 UTC (rev 4855) +++ trunk/pywikipedia/commonsdelinker/image_replacer.py 2008-01-12 13:46:12 UTC (rev 4856) @@ -252,7 +252,7 @@ try: page.put(u'%s\n%s' % (template, text), comment = u'This image has been replaced by ' + new_image) - except PageNotSaved, e: + except wikipedia.PageNotSaved, e: output(u'Warning! Unable to report replacement to %s.' % old_image, False) output('%s: %s' % (e.__class__.__name__, str(e)), False) else: