Rules editors: Set/unset on 'rating' invalid

Bug #1924675 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre 5.14* (x64, run from source)

"If the Rating column (is set|is not set)" rules produce an error about it being invalid:

calibre, version 5.14.0
ERROR: Invalid condition: One of the conditions for this rule is invalid: <b>'is not set'</b>

Traceback (most recent call last):
  File "D:\Documents\git\calibre\src\calibre\gui2\preferences\coloring.py", line 662, in validate
  File "D:\Documents\git\calibre\src\calibre\library\coloring.py", line 33, in add_condition
  File "D:\Documents\git\calibre\src\calibre\library\coloring.py", line 100, in apply_condition
  File "D:\Documents\git\calibre\src\calibre\library\coloring.py", line 147, in rating_condition
KeyError: 'is not set'

At the time I originally made the rule the 'set/not set' options were not available so I am unsure whether they are actually meant to appear.

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

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate 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.