Revision: 4027 Author: btongminh Date: 2007-08-11 20:20:40 +0000 (Sat, 11 Aug 2007)
Log Message: ----------- Error strings should be plain strings.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-11 10:18:06 UTC (rev 4026) +++ trunk/pywikipedia/wikipedia.py 2007-08-11 20:20:40 UTC (rev 4027) @@ -600,7 +600,7 @@ elif self.site().has_mediawiki_message('nocreatetitle') and text.find(self.site().mediawiki_message('nocreatetitle')) != -1: raise LockedNoPage(u'%s does not exist, and page creation is forbidden for anonymous users.' % self.aslink()) elif text.find('var wgPageName = "Special:Badtitle";'): - raise BadTitle(u'BadTitle: %s' % self) + raise BadTitle('BadTitle: %s' % self) else: output( unicode(text) ) # We assume that the server is down. Wait some time, then try again.
pywikipedia-l@lists.wikimedia.org