Revision: 5850 Author: russblau Date: 2008-08-27 10:25:38 +0000 (Wed, 27 Aug 2008)
Log Message: ----------- bugfix
Modified Paths: -------------- trunk/pywikipedia/category_redirect.py
Modified: trunk/pywikipedia/category_redirect.py =================================================================== --- trunk/pywikipedia/category_redirect.py 2008-08-26 23:35:30 UTC (rev 5849) +++ trunk/pywikipedia/category_redirect.py 2008-08-27 10:25:38 UTC (rev 5850) @@ -223,13 +223,11 @@ # no messages on user pages or non-talk pages talkpage = article.toggleTalkPage() try: - talktext = talk.get() + talktext = talkpage.get() except wikipedia.IsRedirectPage: return False except wikipedia.NoPage: talktext = u"" - if not talk.isTalkPage(): - return False talktext = talktext + wikipedia.translate( self.site.lang, self.talk_notification) % {