From 2b7f9c4b3de7af44d2d10edeb935d3d36dd8b343 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 7 Oct 2013 15:51:28 +0200 Subject: [PATCH] Accept null last_modified dates from a smart device. Can happen when books are added from a scan and not matched. --- src/calibre/devices/smart_device_app/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index fc10dd323b..4d7af0e8b0 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -682,6 +682,8 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): return None def _metadata_in_cache(self, uuid, ext, lastmod): + if lastmod == 'None': + return None from calibre.utils.date import parse_date, now key = uuid+ext if isinstance(lastmod, unicode):