Page MenuHomePhabricator
Paste P132

PWB redirect.py on WD
ActivePublic

Authored by revi on Dec 9 2014, 9:50 AM.
Referenced Files
F20181: PWB_redirect.py_on_WD
Dec 9 2014, 9:50 AM
Subscribers
None
tools.revibot@tools-trusty:~/core$ python pwb.py redirect double -family:wikidata -lang:wikidata -user:Revibot -always
Retrieving special page...
>>> Q10843059 <<<
Links to: [[Q12861247]].
Links to: [[Q5695447]].
Traceback (most recent call last):
File "pwb.py", line 181, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 75, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/redirect.py", line 816, in <module>
main()
File "scripts/redirect.py", line 813, in main
bot.run()
File "scripts/redirect.py", line 712, in run
self.fix_double_redirects()
File "scripts/redirect.py", line 521, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "scripts/redirect.py", line 646, in fix_1_double_redirect
oldlink = self.site.redirectRegex().search(oldText).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
<type 'exceptions.AttributeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
tools.revibot@tools-trusty:~/core$