Mpaa has uploaded a new change for review. https://gerrit.wikimedia.org/r/168837
Change subject: Bug 72527 - CircularRedirect exception throws another exception ...................................................................... Bug 72527 - CircularRedirect exception throws another exception CircularRedirect needs a page as input param. Change-Id: I65cc58a1568b922336fcf5c85651cdc4172444d2 --- M pywikibot/site.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/37/168837/1 diff --git a/pywikibot/site.py b/pywikibot/site.py index 17611ee..86de719 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -2344,7 +2344,7 @@ target_title = u'%(title)s%(section)s' % redirmap[title] if target_title == title or "pages" not in result['query']: # no "pages" element indicates a circular redirect - raise pywikibot.CircularRedirect(target_title) + raise pywikibot.CircularRedirect(page) pagedata = list(result['query']['pages'].values())[0] # there should be only one value in 'pages', and it is the target if self.sametitle(pagedata['title'], target_title): -- To view, visit https://gerrit.wikimedia.org/r/168837 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I65cc58a1568b922336fcf5c85651cdc4172444d2 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Mpaa <mpaa.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits