Last modified: 2014-10-27 07:12:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74527, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72527 - CircularRedirect exception throws another exception
CircularRedirect exception throws another exception
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-26 11:44 UTC by Russell Blau
Modified: 2014-10-27 07:12 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Russell Blau 2014-10-26 11:44:26 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.
Comment 1 Gerrit Notification Bot 2014-10-26 18:13:53 UTC
Change 168837 had a related patch set uploaded by Mpaa:
Bug 72527 - CircularRedirect exception throws another exception

https://gerrit.wikimedia.org/r/168837
Comment 2 Gerrit Notification Bot 2014-10-26 23:08:48 UTC
Change 168837 merged by John Vandenberg:
Bug 72527 - CircularRedirect exception throws another exception

https://gerrit.wikimedia.org/r/168837

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links