https://bugzilla.wikimedia.org/show_bug.cgi?id=68543
Bug ID: 68543 Summary: clean sandbox fails if the page is a redirect Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
If someone converts the sandbox to a redirect, the clean_sandbox script fails with an exception.
$ python pwb.py scripts/clean_sandbox.py -family:wikipedia -lang:test -page:User:John_Vandenberg/Sandbox -text:"{{Sandbox}}" Preparing to process sandbox page [[User:John Vandenberg/Sandbox]] Traceback (most recent call last): File "pwb.py", line 153, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/clean_sandbox.py", line 309, in <module> main() File "scripts/clean_sandbox.py", line 306, in main bot.run() File "scripts/clean_sandbox.py", line 198, in run text = sandboxPage.get() File ".../pywikibot/__init__.py", line 423, in wrapper return method(*__args, **__kw) File ".../pywikibot/__init__.py", line 423, in wrapper return method(*__args, **__kw) File ".../pywikibot/page.py", line 312, in get self._getInternals(sysop) File ".../pywikibot/page.py", line 344, in _getInternals raise self._getexception pywikibot.exceptions.IsRedirectPage: Page [[test:User:John Vandenberg/Sandbox]] is a redirect page. <class 'pywikibot.exceptions.IsRedirectPage'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
https://bugzilla.wikimedia.org/show_bug.cgi?id=68543
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com Assignee|Pywikipedia-bugs@lists.wiki |ladsgroup@gmail.com |media.org |
--- Comment #1 from Amir Ladsgroup ladsgroup@gmail.com --- I will fix it
pywikipedia-bugs@lists.wikimedia.org