← Back to team overview

openlp-core team mailing list archive

[Bug 1624847] [NEW] Invalid CSV import results in traceback

 

Public bug reported:

I started importing a .csv Bible, 
importer asked "What book is: "<book_id>.

Win 10 / Trunk 2696

Traceback (most recent call last):
  File "D:\bzr\openlp\add-bible-license-field\openlp\core\ui\lib\wizard.py", line 219, in on_current_id_changed
    self.perform_wizard()
  File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\forms\bibleimportform.py", line 830, in perform_wizard
    if importer.do_import(license_version) and not importer.stop_import_flag:
  File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\lib\importers\csvbible.py", line 165, in do_import
    book_list = self.process_books(books)
  File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\lib\importers\csvbible.py", line 125, in process_books
    book_list.update({int(book.id): book.name})
ValueError: invalid literal for int() with base 10: '<book_id>'

** Affects: openlp
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1624847

Title:
  Invalid CSV import results in traceback

Status in OpenLP:
  New

Bug description:
  I started importing a .csv Bible, 
  importer asked "What book is: "<book_id>.

  Win 10 / Trunk 2696

  Traceback (most recent call last):
    File "D:\bzr\openlp\add-bible-license-field\openlp\core\ui\lib\wizard.py", line 219, in on_current_id_changed
      self.perform_wizard()
    File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\forms\bibleimportform.py", line 830, in perform_wizard
      if importer.do_import(license_version) and not importer.stop_import_flag:
    File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\lib\importers\csvbible.py", line 165, in do_import
      book_list = self.process_books(books)
    File "D:\bzr\openlp\add-bible-license-field\openlp\plugins\bibles\lib\importers\csvbible.py", line 125, in process_books
      book_list.update({int(book.id): book.name})
  ValueError: invalid literal for int() with base 10: '<book_id>'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1624847/+subscriptions


Follow ups