Revision: 6488 Author: russblau Date: 2009-03-04 14:23:41 +0000 (Wed, 04 Mar 2009)
Log Message: ----------- catch all exceptions
Modified Paths: -------------- branches/rewrite/pywikibot/scripts/touch.py
Modified: branches/rewrite/pywikibot/scripts/touch.py =================================================================== --- branches/rewrite/pywikibot/scripts/touch.py 2009-03-04 07:46:41 UTC (rev 6487) +++ branches/rewrite/pywikibot/scripts/touch.py 2009-03-04 14:23:41 UTC (rev 6488) @@ -46,8 +46,13 @@ % page.title(asLink=True), level=pywikibot.WARNING) except pywikibot.LockedPage: - pywikibot.output(u"Page %s is locked?!" % page.title(asLink=True), + pywikibot.output(u"Page %s is locked?!" + % page.title(asLink=True), level=pywikibot.ERROR) + except pywikibot.PageNotSaved: + pywikibot.output(u"Page %s not saved" + % page.title(asLink=True), + level=pywikibot.ERROR)
def main(*args):