Improve error handling when sorting date-subtype composite columns

This commit is contained in:
Charles Haley 2011-04-23 13:02:20 +01:00
parent 049cc7525c
commit b14e890403

View File

@ -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)