jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Skip circular redirects in redirect.py ......................................................................
[FIX] Skip circular redirects in redirect.py
Bug: T107694 Change-Id: I320df4fd60ff8d2f1a25f659db698ff09ccac4c3 --- M scripts/redirect.py 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py index 93f2b55..a5c129f 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -409,6 +409,8 @@ targetPage = redir_page.getRedirectTarget() except pywikibot.IsNotRedirectPage: pywikibot.output(u'%s is not a redirect.' % redir_page.title()) + except pywikibot.CircularRedirect: + pywikibot.output(u'%s is a circular redirect.' % redir_page.title()) except pywikibot.NoPage: pywikibot.output(u'%s doesn't exist.' % redir_page.title()) else: