Fix #8308 (Kobo drive does not deal with Null value in DateCreated column)

This commit is contained in:
Kovid Goyal 2011-01-13 18:17:37 -07:00
commit ab0bde42fa

View File

@ -27,7 +27,7 @@ class Book(Book_):
self.size = size # will be set later if None
if ContentType == '6':
if ContentType == '6' and date is not None:
self.datetime = time.strptime(date, "%Y-%m-%dT%H:%M:%S.%f")
else:
try: