mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:17:01 +02:00
Improve error handling when sorting date-subtype composite columns
This commit is contained in:
parent
049cc7525c
commit
b14e890403
1 changed files with 2 additions and 2 deletions
|
|
@ -1005,9 +1005,9 @@ def itervals(self, record):
|
|||
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…
Reference in a new issue