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:])
pywikibot-commits@lists.wikimedia.org