JAnD created this task.
JAnD added a subscriber: JAnD.
JAnD added a project: Pywikibot-Cosmetic-changes.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
`I:\py\rewrite>pwb.py cosmetic_changes.py -family:wiktionary -start:-ůw`
```
Retrieving 50 pages from wiktionary:cs.
...
>>> Addis Abeba <<<
@@ -62 +62 @@
- [[sv:Addis Abeba]]
+ [[sv:Addis Abeba]]
Edit summary: Robot: kosmetické úpravy
Page [[Addis Abeba]] saved
>>> Adelaide <<<
227 pages read
197 pages written
Execution time: 148 seconds
Read operation time: 0 seconds
Write operation time: 0 seconds
Script terminated by exception:
ERROR: TypeError: coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
File "I:\py\rewrite\pwb.py", line 239, in <module>
if not main():
File "I:\py\rewrite\pwb.py", line 233, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "I:\py\rewrite\pwb.py", line 111, in run_python_file
main_mod.__dict__)
File ".\scripts\cosmetic_changes.py", line 146, in <module>
main()
File ".\scripts\cosmetic_changes.py", line 139, in main
bot.run()
File "I:\py\rewrite\pywikibot\bot.py", line 1805, in run
super(MultipleSitesBot, self).run()
File "I:\py\rewrite\pywikibot\bot.py", line 1619, in run
self.treat(page)
File "I:\py\rewrite\pywikibot\bot.py", line 1906, in treat
super(ExistingPageBot, self).treat(page)
File "I:\py\rewrite\pywikibot\bot.py", line 1970, in treat
super(NoRedirectPageBot, self).treat(page)
File "I:\py\rewrite\pywikibot\bot.py", line 1833, in treat
self.treat_page()
File ".\scripts\cosmetic_changes.py", line 76, in treat_page
changedText = ccToolkit.change(self.current_page.get())
File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 279, in change
new_text = self._change(text)
File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 273, in _change
text = self.safe_execute(method, text)
File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 260, in
safe_execute
result = method(text)
File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 601, in
cleanUpLinks
'startspace'])
File "I:\py\rewrite\pywikibot\textlib.py", line 292, in replaceExcept
replacement = new(match)
File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 488, in
handleOneLink
if not self.site.isInterwikiLink(titleWithSection):
File "I:\py\rewrite\pywikibot\site.py", line 1096, in isInterwikiLink
linkfam, linkcode = pywikibot.Link(text, self).parse_site()
File "I:\py\rewrite\pywikibot\page.py", line 4769, in parse_site
newsite = self._source.interwiki(prefix)
File "I:\py\rewrite\pywikibot\site.py", line 933, in interwiki
return self._interwikimap[prefix].site
File "I:\py\rewrite\pywikibot\site.py", line 689, in __getitem__
raise self._iw_sites[prefix].site
TypeError: coercing to Unicode: need string or buffer, NoneType found
<type 'exceptions.TypeError'>
CRITICAL: Closing network session.
```
TASK DETAIL
https://phabricator.wikimedia.org/T112449
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD
Cc: Aklapper, pywikibot-bugs-list, JAnD
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs