Unhandled exception using "Mark books" feature

Bug #1239161 reported by Mi Ro on 2013-10-12
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

The unhandled exception is generated each time, when the books are "marked" by new feature "Mark Books", two of marked books are merged (select "delete others") and then the books are going to be "unmarked".

calibre, version 1.6.0
ERROR: Unhandled exception: <b>ValueError</b>:tuple.index(x): x not in tuple

calibre 1.6 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\actions\mark_books.py", line 101, in toggle_selected
  File "site-packages\calibre\gui2\actions\mark_books.py", line 112, in toggle_ids
  File "site-packages\calibre\db\view.py", line 389, in toggle_marked_ids
  File "site-packages\calibre\db\view.py", line 383, in set_marked_ids
  File "site-packages\calibre\gui2\__init__.py", line 421, in __call__
  File "site-packages\calibre\gui2\library\views.py", line 696, in marked_changed
  File "site-packages\calibre\db\view.py", line 193, in id_to_index
ValueError: tuple.index(x): x not in tuple

Mi Ro (mirik) wrote :

The same behaviour is observed when multiple books are marked and one or more of the marked books is deleted. Unmark will produce the same error. Generally speaking, deleting one or more "marked" books will produce unhandled exception during "unmarking".

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers