Xqt has submitted this change and it was merged.
Change subject: redirect.py define exceptions before using it
......................................................................
redirect.py define exceptions before using it
Change-Id: I9db47726096ddb1b9ab0f8928c5a2c65215934fb
---
M scripts/redirect.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Nullzero: Looks good to me, but someone else must approve
Xqt: Verified; Looks good to me, approved
diff --git a/scripts/redirect.py b/scripts/redirect.py
index ed1fc16..c50da8d 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -444,7 +444,7 @@
else:
try:
targetPage.get()
- except pywikibot.BadTitle:
+ except pywikibot.BadTitle as e:
pywikibot.warning(
u'Redirect target %s is not a valid page title.'
% str(e)[10:])
--
To view, visit https://gerrit.wikimedia.org/r/116296
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9db47726096ddb1b9ab0f8928c5a2c65215934fb
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Nullzero <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits