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
  `pwb.py cosmetic_changes.py -family:wiktionary -start:a -lang:cs`
  
  ```
  ...
  >>> autrement <<<
  
  306 pages read
  293 pages written
  Execution time: 222 seconds
  Read operation time: 0 seconds
  Write operation time: 0 seconds
  Script terminated by exception:
  
  ERROR: InvalidIsbnException: ISBN-13: The ISBN 2884451313X contains invalid 
char
  acters. / ISBN-10: The ISBN 2884451313X is not 10 digits long.
  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 143, in <module>
      main()
    File ".\scripts\cosmetic_changes.py", line 136, 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 73, 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 957, in fix_ISBN
      text, strict=False if self.ignore == CANCEL_MATCH else True)
    File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 206, in 
_reformat_ISB
  Ns
      text, lambda match: _format_isbn_match(match, strict=strict))
    File "I:\py\rewrite\pywikibot\textlib.py", line 1593, in reformat_ISBNs
      text = isbnR.sub(match_func, text)
    File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 206, in <lambda>
      text, lambda match: _format_isbn_match(match, strict=strict))
    File "I:\py\rewrite\pywikibot\cosmetic_changes.py", line 175, in 
_format_isbn_
  match
      scripts_isbn.is_valid(isbn)
    File "I:\py\rewrite\scripts\isbn.py", line 1376, in is_valid
      getIsbn(isbn)
    File "I:\py\rewrite\scripts\isbn.py", line 1344, in getIsbn
      % (e13, e10))
  scripts.isbn.InvalidIsbnException: ISBN-13: The ISBN 2884451313X contains 
invali
  d characters. / ISBN-10: The ISBN 2884451313X is not 10 digits long.
  <class 'scripts.isbn.InvalidIsbnException'>
  CRITICAL: Closing network session.
  ```

TASK DETAIL
  https://phabricator.wikimedia.org/T109190

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JAnD
Cc: Aklapper, JAnD, pywikibot-bugs-list, Malyacko



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to