Revision: 6466 Author: nicdumz Date: 2009-03-02 13:57:14 +0000 (Mon, 02 Mar 2009)
Log Message: ----------- This was meant to be in r6461. The redirect target is not necessary here.
Modified Paths: -------------- branches/rewrite/pywikibot/scripts/category.py
Modified: branches/rewrite/pywikibot/scripts/category.py =================================================================== --- branches/rewrite/pywikibot/scripts/category.py 2009-03-02 11:47:41 UTC (rev 6465) +++ branches/rewrite/pywikibot/scripts/category.py 2009-03-02 13:57:14 UTC (rev 6466) @@ -374,11 +374,9 @@ pywikibot.output(u"%s doesn't exist yet. Ignoring." % (page.title())) pass - except pywikibot.IsRedirectPage, arg: - redirTarget = pywikibot.Page(site, arg.args[0]) + except pywikibot.IsRedirectPage: pywikibot.output( - u"WARNING: %s is redirect to %s. Ignoring." - % (page.title(), redirTarget.title())) + u"WARNING: %s is redirect to. Ignoring." % page) else: cats = page.categories() # Show the title of the page we're working on.