mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6c94cdb03c
commit
ee45978cd0
@ -193,7 +193,11 @@ class PRST1(USBMS):
|
|||||||
|
|
||||||
time_offsets = {}
|
time_offsets = {}
|
||||||
for i, row in enumerate(cursor):
|
for i, row in enumerate(cursor):
|
||||||
comp_date = int(os.path.getmtime(self.normalize_path(prefix + row[0])) * 1000);
|
try:
|
||||||
|
comp_date = int(os.path.getmtime(self.normalize_path(prefix + row[0])) * 1000);
|
||||||
|
except (OSError, IOError):
|
||||||
|
# In case the db has incorrect path info
|
||||||
|
continue
|
||||||
device_date = int(row[1]);
|
device_date = int(row[1]);
|
||||||
offset = device_date - comp_date
|
offset = device_date - comp_date
|
||||||
time_offsets.setdefault(offset, 0)
|
time_offsets.setdefault(offset, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user