Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/228770

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/70/228770/1

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: newchange
Gerrit-Change-Id: Iebd4f77e05e719a3df76ab4977a2ada6f519e919
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

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

Reply via email to