Wesalius created this task.
Wesalius added a subscriber: Wesalius.
Wesalius added a project: Pywikibot-Cosmetic-changes.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
I ran cc with -newpages:500, after encountering page with wrong number of
digits in ISBN cc ended giving
```
Script terminated by exception:
ERROR: InvalidIsbnException: ISBN-13: The ISBN 8080632441 is not 13 digits
long. / ISBN-10: The ISBN checksum of 8080632441 is incorrect.
Traceback (most recent call last):
File "pwb.py", line 239, in <module>
if not main():
File "pwb.py", line 233, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 111, in run_python_file
main_mod.__dict__)
File ".\scripts\cosmetic_changes.py", line 144, in <module>
main()
File ".\scripts\cosmetic_changes.py", line 137, in main
bot.run()
File "...\core\pywikibot\bot.py", line 1805, in run
super(MultipleSitesBot, self).run()
File "...\core\pywikibot\bot.py", line 1619, in run
self.treat(page)
File "...\core\pywikibot\bot.py", line 1906, in treat
super(ExistingPageBot, self).treat(page)
File "...\core\pywikibot\bot.py", line 1970, in treat
super(NoRedirectPageBot, self).treat(page)
File "...\core\pywikibot\bot.py", line 1833, in treat
self.treat_page()
File ".\scripts\cosmetic_changes.py", line 74, in treat_page
changedText = ccToolkit.change(self.current_page.get())
File "...\core\pywikibot\cosmetic_changes.py", line 279, in change
new_text = self._change(text)
File "...\core\pywikibot\cosmetic_changes.py", line 273, in _change
text = self.safe_execute(method, text)
File "...\core\pywikibot\cosmetic_changes.py", line 260, in safe_execute
result = method(text)
File "...\core\pywikibot\cosmetic_changes.py", line 957, in fix_ISBN
text, strict=False if self.ignore == CANCEL_MATCH else True)
File "...\core\pywikibot\cosmetic_changes.py", line 206, in _reformat_ISBNs
text, lambda match: _format_isbn_match(match, strict=strict))
File "...\core\pywikibot\textlib.py", line 1593, in reformat_ISBNs
text = isbnR.sub(match_func, text)
File "...\core\pywikibot\cosmetic_changes.py", line 206, in <lambda>
text, lambda match: _format_isbn_match(match, strict=strict))
File "...\core\pywikibot\cosmetic_changes.py", line 175, in
_format_isbn_match
scripts_isbn.is_valid(isbn)
File "...\core\scripts\isbn.py", line 1376, in is_valid
getIsbn(isbn)
File "...\core\scripts\isbn.py", line 1344, in getIsbn
% (e13, e10))
scripts.isbn.InvalidIsbnException: ISBN-13: The ISBN 8080632441 is not 13
digits long. / ISBN-10: The ISBN checksum of 8080632441 is incorrect.
<class 'scripts.isbn.InvalidIsbnException'>
CRITICAL: Closing network session.
```
My version:
```
Pywikibot: [https] r-pywikibot-core.git (baa26b6, g6095, 2015/08/07,
08:37:05, ok)
Release version: 2.0b3
requests version: 2.7.0
```
TASK DETAIL
https://phabricator.wikimedia.org/T108446
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Wesalius
Cc: Aklapper, Wesalius, pywikibot-bugs-list, Malyacko
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs