mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-01 06:25:06 +01:00
Fix #1008215 (Sync problems with old sony driver sync)
This commit is contained in:
parent
8dd97292cf
commit
2aff0ad7a7
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ def sync_booklists(self, booklists, end_session=True):
|
|||
os.makedirs(self.normalize_path(self._main_prefix))
|
||||
|
||||
def write_prefix(prefix, listid):
|
||||
if prefix is not None and isinstance(booklists[listid], self.booklist_class):
|
||||
if (prefix is not None and len(booklists) > listid and
|
||||
isinstance(booklists[listid], self.booklist_class)):
|
||||
if not os.path.exists(prefix):
|
||||
os.makedirs(self.normalize_path(prefix))
|
||||
with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f:
|
||||
|
|
|
|||
Loading…
Reference in a new issue