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
--
To view, visit
https://gerrit.wikimedia.org/r/367322
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5a2d626e0071dcf358b7c5e04014247c847f936
Gerrit-PatchSet: 4
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>