Xqt has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/22/367322/1

diff --git a/scripts/redirect.py b/scripts/redirect.py
index e1ccdf9..26f993f 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -618,7 +618,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: newchange
Gerrit-Change-Id: Ia5a2d626e0071dcf358b7c5e04014247c847f936
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