mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3756 (Problem with non-numeric series-index)
This commit is contained in:
parent
bcb0f1e271
commit
966379bc79
@ -598,7 +598,11 @@ OptionRecommendation(name='language',
|
||||
elif x == 'tags':
|
||||
val = [i.strip() for i in val.split(',')]
|
||||
elif x in ('rating', 'series_index'):
|
||||
try:
|
||||
val = float(val)
|
||||
except ValueError:
|
||||
self.log.warn(_('Values of series index and rating must'
|
||||
' be numbers. Ignoring'), val)
|
||||
setattr(mi, x, val)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user