Ladsgroup has uploaded a new change for review. https://gerrit.wikimedia.org/r/150693
Change subject: Fix bug 68543 ...................................................................... Fix bug 68543 If the sandbox page is redirect, get the target Change-Id: Ibfc472411a502f2332ccc2930890066198c28398 --- M scripts/clean_sandbox.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/93/150693/1 diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py index 6fc5398..2f50413 100755 --- a/scripts/clean_sandbox.py +++ b/scripts/clean_sandbox.py @@ -193,6 +193,8 @@ sandboxPage = pywikibot.Page(self.site, title) pywikibot.output(u'Preparing to process sandbox page %s' % sandboxPage.title(asLink=True)) + if sandboxPage.isRedirectPage(): + sandboxPage = sandboxPage.sgetRedirectTarget() try: text = sandboxPage.get() if not self.getOption('text'): -- To view, visit https://gerrit.wikimedia.org/r/150693 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibfc472411a502f2332ccc2930890066198c28398 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits