http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9340
Revision: 9340 Author: xqt Date: 2011-07-09 10:43:00 +0000 (Sat, 09 Jul 2011) Log Message: ----------- remove orphaned try statement, bugfix for r8940
Modified Paths: -------------- branches/rewrite/scripts/interwiki.py
Modified: branches/rewrite/scripts/interwiki.py =================================================================== --- branches/rewrite/scripts/interwiki.py 2011-07-09 09:58:24 UTC (rev 9339) +++ branches/rewrite/scripts/interwiki.py 2011-07-09 10:43:00 UTC (rev 9340) @@ -1199,11 +1199,10 @@ redir = u'' else: redir = u'category ' - try: - if page.isRedirectPage(): - redirectTargetPage = page.getRedirectTarget() - else: - redirectTargetPage = page.getCategoryRedirectTarget() + if page.isRedirectPage(): + redirectTargetPage = page.getRedirectTarget() + else: + redirectTargetPage = page.getCategoryRedirectTarget() if not globalvar.quiet: pywikibot.output(u"NOTE: %s is %sredirect to %s" % (page, redir, redirectTargetPage))
pywikipedia-svn@lists.wikimedia.org