jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/367322 )
Change subject: Skip when target raises UnsupportedPage ......................................................................
Skip when target raises UnsupportedPage
An UnsupportedPage is raised when the target is a Special: page or a Media: page. Now it will be skipped.
Change-Id: Ia5a2d626e0071dcf358b7c5e04014247c847f936 --- M scripts/redirect.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/scripts/redirect.py b/scripts/redirect.py index bd8ddec..7b8f93d 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -615,7 +615,8 @@ u"Redirect target section %s doesn't exist." % newRedir.title(asLink=True)) except (pywikibot.CircularRedirect, - pywikibot.InterwikiRedirectPage) as e: + pywikibot.InterwikiRedirectPage, + pywikibot.UnsupportedPage) as e: pywikibot.exception(e) pywikibot.output(u"Skipping %s." % newRedir) break
pywikibot-commits@lists.wikimedia.org