jenkins-bot has submitted this change and it was merged. Change subject: Fix bug 68543 ......................................................................
Fix bug 68543 Doesn't matter the sandbox is redirected or not Change-Id: Ibfc472411a502f2332ccc2930890066198c28398 --- M scripts/clean_sandbox.py 1 file changed, 5 insertions(+), 1 deletion(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py index 6fc5398..6939777 100755 --- a/scripts/clean_sandbox.py +++ b/scripts/clean_sandbox.py @@ -193,8 +193,12 @@ sandboxPage = pywikibot.Page(self.site, title) pywikibot.output(u'Preparing to process sandbox page %s' % sandboxPage.title(asLink=True)) + if sandboxPage.isRedirectPage(): + pywikibot.warning( + u'%s is a redirect page, cleaning it anyway' + % sandboxPage.title(asLink=True)) try: - text = sandboxPage.get() + text = sandboxPage.get(get_redirect=True) if not self.getOption('text'): translatedContent = i18n.translate(self.site, content) else: -- To view, visit https://gerrit.wikimedia.org/r/150693 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibfc472411a502f2332ccc2930890066198c28398 Gerrit-PatchSet: 4 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Bep <bjorn.erik.peder...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits