mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-15 19:55:10 +01:00
...
This commit is contained in:
parent
6c94cdb03c
commit
ee45978cd0
1 changed files with 5 additions and 1 deletions
|
|
@ -193,7 +193,11 @@ def books(self, oncard=None, end_session=True):
|
|||
|
||||
time_offsets = {}
|
||||
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]);
|
||||
offset = device_date - comp_date
|
||||
time_offsets.setdefault(offset, 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue