http://www.mediawiki.org/wiki/Special:Code/pywikipedia/8961
Revision: 8961 Author: amir Date: 2011-02-15 21:19:15 +0000 (Tue, 15 Feb 2011) Log Message: ----------- fix r8947(i'm not sure)
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2011-02-15 20:47:28 UTC (rev 8960) +++ trunk/pywikipedia/catlib.py 2011-02-15 21:19:15 UTC (rev 8961) @@ -464,7 +464,7 @@ talkpage=targetCat.toggleTalkPage() try: talktext=talkpage.get() - except: + except wikipedia.NoPage: talkpage.put(u"==Authors==\n%s-~~~~" % authors, u"Bot:Listifying authors") else: talkpage.put(talktext+u"\n==Authors==\n%s-~~~~" % authors, u"Bot:Listifying authors")
pywikipedia-svn@lists.wikimedia.org