Last modified: 2014-10-27 07:12:17 UTC
For testing, a creating a sandbox page that redirects to itself: >>> s = pywikibot.Site() >>> p = pywikibot.Page(s, "User:R'n'B/sandbox") >>> p.getRedirectTarget() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/shared/pywikipedia/rewrite/pywikibot/page.py", line 1361, in getRedirec tTarget return self.site.getredirtarget(self) File "/shared/pywikipedia/rewrite/pywikibot/site.py", line 2347, in getredirta rget raise pywikibot.CircularRedirect(target_title) File "/shared/pywikipedia/rewrite/pywikibot/exceptions.py", line 99, in __init __ self.title = page.title(asLink=True) TypeError: title() takes no keyword arguments I don't understand the cause here, since page.title(asLink=True) works fine in other contexts.
Change 168837 had a related patch set uploaded by Mpaa: Bug 72527 - CircularRedirect exception throws another exception https://gerrit.wikimedia.org/r/168837
Change 168837 merged by John Vandenberg: Bug 72527 - CircularRedirect exception throws another exception https://gerrit.wikimedia.org/r/168837