mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 11:24:31 +01:00
Fix #2447 (Calibre "permission denied" error)
This commit is contained in:
parent
312a23fd8e
commit
a4dc51b30d
1 changed files with 3 additions and 0 deletions
|
|
@ -506,6 +506,9 @@ def find_toc(self):
|
|||
else:
|
||||
self.path_to_html_toc, self.html_toc_fragment = \
|
||||
toc.partition('#')[0], toc.partition('#')[-1]
|
||||
if not os.access(self.path_to_html_toc, os.R_OK) or \
|
||||
not os.path.isfile(self.path_to_html_toc):
|
||||
self.path_to_html_toc = None
|
||||
self.toc.read_html_toc(toc)
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue