Adding Advance Column Color Rule - ERROR: Unhandled exception

Bug #1118678 reported by Michael D Brooks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

OS: Windows XP SP3
VER: Calibre 0.9.17

Adding Custom Column Coloring 'Advance Rule' for 'Series'

    program:
    cmp(field('series_index'), 1, '', 'blue', '');

Template Value shows 'Blue' on selected book 1 of series.

Click 'OK' and recieve

calibre, version 0.9.17
ERROR: Unhandled exception: <b>ValueError</b>:need more than 2 values to unpack

Traceback (most recent call last):
  File "site-packages\calibre\gui2\preferences\coloring.py", line 735, in add_advanced
  File "site-packages\calibre\gui2\preferences\coloring.py", line 722, in _add_rule
ValueError: need more than 2 values to unpack

====

'#formats' column

Program:

first_non_empty(
  contains(uppercase(field('formats')), 'EPUB', 'green', ''),
  contains(uppercase(field('formats')), 'MOBI', 'blue', ''),
  'steelblue'
)

calibre, version 0.9.17
ERROR: Unhandled exception: <b>ValueError</b>:need more than 2 values to unpack

Traceback (most recent call last):
  File "site-packages\calibre\gui2\preferences\coloring.py", line 735, in add_advanced
  File "site-packages\calibre\gui2\preferences\coloring.py", line 722, in _add_rule
ValueError: need more than 2 values to unpack

Related branches

Charles Haley (cbhaley)
Changed in calibre:
status: New → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

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

 status fixreleased

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.