mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
18a59e5f3a
commit
35c5c1fac6
@ -170,7 +170,10 @@ class EbookIterator(object):
|
|||||||
dat = self.serialize_bookmarks(bookmarks)
|
dat = self.serialize_bookmarks(bookmarks)
|
||||||
if os.path.splitext(self.pathtoebook)[1].lower() == '.epub' and \
|
if os.path.splitext(self.pathtoebook)[1].lower() == '.epub' and \
|
||||||
os.access(self.pathtoebook, os.R_OK):
|
os.access(self.pathtoebook, os.R_OK):
|
||||||
zf = open(self.pathtoebook, 'r+b')
|
try:
|
||||||
|
zf = open(self.pathtoebook, 'r+b')
|
||||||
|
except IOError:
|
||||||
|
return
|
||||||
zipf = ZipFile(zf, mode='a')
|
zipf = ZipFile(zf, mode='a')
|
||||||
for name in zipf.namelist():
|
for name in zipf.namelist():
|
||||||
if name == 'META-INF/calibre_bookmarks.txt':
|
if name == 'META-INF/calibre_bookmarks.txt':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user