jenkins-bot has submitted this change and it was merged.

Change subject: [Fix] Don't break redirect script by InvalidTitle error
......................................................................


[Fix] Don't break redirect script by InvalidTitle error

Bug: T107645
Change-Id: Iebd4f77e05e719a3df76ab4977a2ada6f519e919
---
M scripts/redirect.py
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  XZise: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/redirect.py b/scripts/redirect.py
index 93f2b55..2fb127a 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -411,6 +411,8 @@
             pywikibot.output(u'%s is not a redirect.' % redir_page.title())
         except pywikibot.NoPage:
             pywikibot.output(u'%s doesn\'t exist.' % redir_page.title())
+        except pywikibot.InvalidTitle:
+            pywikibot.exception()
         else:
             try:
                 targetPage.get()

-- 
To view, visit https://gerrit.wikimedia.org/r/228770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iebd4f77e05e719a3df76ab4977a2ada6f519e919
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to