Revision: 6832 Author: russblau Date: 2009-05-05 17:28:25 +0000 (Tue, 05 May 2009)
Log Message: ----------- Patch 2787026 by Liangent: thanks :)
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2009-05-05 17:13:54 UTC (rev 6831) +++ branches/rewrite/pywikibot/page.py 2009-05-05 17:28:25 UTC (rev 6832) @@ -374,7 +374,7 @@ """Return the current (edited) wikitext, loading it if necessary.""" if not hasattr(self, '_text') or self._text is None: try: - self._text = self.get() + self._text = self.get(get_redirect=True) except pywikibot.NoPage: # TODO: what other exceptions might be returned? self._text = u""