jenkins-bot has submitted this change and it was merged.
Change subject: backport Ibd85350cda6b511afd3b7a335abe20bd4ac0899e from core ......................................................................
backport Ibd85350cda6b511afd3b7a335abe20bd4ac0899e from core
bug: 68694 Change-Id: I82c29bfecd8da017e205b4ca34a98eea61b05601 --- M category.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/category.py b/category.py index 659cae5..3f7043b 100644 --- a/category.py +++ b/category.py @@ -310,8 +310,8 @@ else: pywikibot.output(u"Page %s does not exist; skipping." % page.title(asLink=True)) - except pywikibot.IsRedirectPage as arg: - redirTarget = pywikibot.Page(self.site, arg.args[0]) + except pywikibot.IsRedirectPage: + redirTarget = page.getRedirectTarget() if self.follow_redirects: text = redirTarget.get() else: