mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Improve error handling when sorting date-subtype composite columns
This commit is contained in:
parent
049cc7525c
commit
b14e890403
@ -1005,9 +1005,9 @@ class SortKeyGenerator(object):
|
||||
if sb == 'date':
|
||||
try:
|
||||
val = parse_date(val)
|
||||
dt = 'datetime'
|
||||
except:
|
||||
pass
|
||||
val = UNDEFINED_DATE
|
||||
dt = 'datetime'
|
||||
elif sb == 'number':
|
||||
try:
|
||||
val = float(val)
|
||||
|
Loading…
x
Reference in New Issue
Block a user