https://bugzilla.wikimedia.org/show_bug.cgi?id=72208
Bug ID: 72208 Summary: redirect.py stopped working Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: critical Priority: Unprioritized Component: redirect.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: rubin.happy@gmail.com Web browser: --- Mobile Platform: ---
When I am running redirect.py -br on ru.wiki, I get script crashed:
Pywikibot: [https] r-p-pywikibot-core.git (9f18c0d, g4311, 2014/10/17, 17:04:06, ok) Release version: 2.0b2 Python: 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] unicode test: ok httplib2 version: 0.7.2
tools.rubinbot@tools-login:~/.pywikibot$ python scripts/redirect.py br -delete Retrieving special page...
Бабл <<<
Traceback (most recent call last): File "scripts/redirect.py", line 798, in <module> main() File "scripts/redirect.py", line 795, in main bot.run() File "scripts/redirect.py", line 708, in run self.delete_broken_redirects() File "scripts/redirect.py", line 403, in delete_broken_redirects self.delete_1_broken_redirect(redir_name) File "scripts/redirect.py", line 478, in delete_1_broken_redirect redir_page.title(asLink=True))): File "/shared/pywikipedia/core/pywikibot/bot.py", line 934, in user_confirm default='N') File "/shared/pywikipedia/core/pywikibot/bot.py", line 539, in input_choice automatic_quit) File "/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 274, in input_choice question = '{0} ({1})'.format(question, ', '.join(formatted_options)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-21: ordinal not in range(128) <type 'exceptions.UnicodeEncodeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort