jayvdb added projects: Pywikibot-Other-scripts, Easy.
jayvdb raised the priority of this task from "Normal" to "High".
jayvdb added a comment.
Herald added a subscriber: TerraCodes.

This code was modified by 8a87eaecd95 , but the previous code also had the same bug, with the following stacktrace

Retrieving 1 pages from wikipedia:en.
Traceback (most recent call last):
  File "pwb.py", line 222, in <module>
    run_python_file(filename, argv, argvu, file_package)
  File "pwb.py", line 81, in run_python_file
    main_mod.__dict__)
  File "./scripts/isbn.py", line 1553, in <module>
    main()
  File "./scripts/isbn.py", line 1548, in main
    bot.run()
  File "./scripts/isbn.py", line 1422, in run
    self.treat(page)
  File "./scripts/isbn.py", line 1397, in treat
    newText = self.isbnR.sub(_isbn10toIsbn13, newText)
  File "./scripts/isbn.py", line 1359, in _isbn10toIsbn13
    i13 = i.toISBN13()
AttributeError: ISBN13 instance has no attribute 'toISBN13'

The bug comes from 2007. 4c001a42b https://mediawiki.org/wiki/Special:Code/pywikipedia/4262


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

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

To: jayvdb
Cc: jayvdb, TerraCodes, pywikibot-bugs-list, Aklapper, Yamaha5, Zppix, Mdupont
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to