[Pywikipedia-l] SVN: [4676] trunk/pywikipedia/wikipedia.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Sun Dec 9 18:04:11 UTC 2007
Revision: 4676
Author: filnik
Date: 2007-12-09 18:04:06 +0000 (Sun, 09 Dec 2007)
Log Message:
-----------
Bufix, data doesn't exist :S (_getEditPage function)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-12-09 17:43:46 UTC (rev 4675)
+++ trunk/pywikipedia/wikipedia.py 2007-12-09 18:04:06 UTC (rev 4676)
@@ -689,7 +689,7 @@
elif text.find(self.site().mediawiki_message('viewsource')) != -1:
raise NoPage(self.site(), self.aslink(forceInterwiki = True))
else:
- if data.find( "<title>Wikimedia Error</title>") > -1:
+ if text.find( "<title>Wikimedia Error</title>") > -1:
output( u"Wikimedia has technical problems; will retry in %i minutes." % retry_idle_time)
else:
output( unicode(text) )
More information about the Pywikipedia-l
mailing list