Revision: 8763 Author: purodha Date: 2010-12-06 15:13:17 +0000 (Mon, 06 Dec 2010) Log Message: ----------- Interwiki.py: Bugfix, -askhints could ask for hints on a nonexisting page and choke, when preparing for page contents to be shown.
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2010-12-06 11:26:20 UTC (rev 8762) +++ trunk/pywikipedia/interwiki.py 2010-12-06 15:13:17 UTC (rev 8763) @@ -1276,6 +1276,7 @@ # Do not ask hints for pages that we don't work on anyway return if (self.untranslated or globalvar.askhints) and not self.hintsAsked \ + and self.originPage and self.originPage.exists() \ and not self.originPage.isRedirectPage() and not self.originPage.isCategoryRedirect(): # Only once! self.hintsAsked = True
pywikipedia-svn@lists.wikimedia.org