Dvorapa added a comment.
Current traceback:
$ python pwb.py cosmetic_changes
-page:"Wikipedista:Dvorapa/Pískoviště/Písek"
ATTENTION: You can run this script as a stand-alone for testing purposes.
However, the changes that are made are only minor, and other users might get
angry if you fill the version histories and watchlists with such irrelevant
changes. Some wikis prohibit stand-alone running. Do you really want to
continue? ([y]es, [N]o): y
Retrieving 1 pages from wikipedia:cs.
>>> Wikipedista:Dvorapa/Pískoviště/Písek <<<
0 pages read
0 pages written
0 pages skipped
Execution time: 0 seconds
Script terminated by exception:
ERROR: InvalidChecksum: The number's checksum or check digit is invalid.
Traceback (most recent call last):
File "pwb.py", line 325, in <module>
if not main():
File "pwb.py", line 320, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 100, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "./scripts/cosmetic_changes.py", line 138, in <module>
main()
File "./scripts/cosmetic_changes.py", line 132, in main
bot.run()
File "/home/pavel/pywikibot/pywikibot/bot.py", line 1724, in run
super(MultipleSitesBot, self).run()
File "/home/pavel/pywikibot/pywikibot/bot.py", line 1527, in run
self.treat(page)
File "/home/pavel/pywikibot/pywikibot/bot.py", line 1812, in treat
self.treat_page()
File "./scripts/cosmetic_changes.py", line 75, in treat_page
changed_text = cc_toolkit.change(self.current_page.get())
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 272, in
change
new_text = self._change(text)
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 266, in
_change
text = self.safe_execute(method, text)
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 253, in
safe_execute
result = method(text)
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 1145, in
fix_ISBN
return _reformat_ISBNs(
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 192, in
_reformat_ISBNs
return textlib.reformat_ISBNs(
File "/home/pavel/pywikibot/pywikibot/textlib.py", line 2061, in
reformat_ISBNs
text = isbnR.sub(match_func, text)
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 193, in
<lambda>
text, lambda match: _format_isbn_match(match, strict=strict))
File "/home/pavel/pywikibot/pywikibot/cosmetic_changes.py", line 177, in
_format_isbn_match
stdnum_isbn.validate(isbn)
File "/home/pavel/.local/lib/python3.8/site-packages/stdnum/isbn.py",
line 99, in validate
raise InvalidChecksum()
stdnum.exceptions.InvalidChecksum: The number's checksum or check digit is
invalid.
CRITICAL: Exiting due to uncaught exception <class
'stdnum.exceptions.InvalidChecksum'>
TASK DETAIL
https://phabricator.wikimedia.org/T108446
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Dvorapa
Cc: Dvorapa, Zppix, Yamaha5, Xqt, Rajdeep05, StudiesWorld, jayvdb, JAnD, XZise,
Aklapper, Wesalius, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs