mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #587
This commit is contained in:
parent
34ddfb4135
commit
3ae6a3fb0c
@ -92,9 +92,12 @@ class TOC(list):
|
||||
bn = bn.replace('_top.htm', '_toc.htm') # Bug in BAEN OPF files
|
||||
toc = os.path.join(os.path.dirname(toc), bn)
|
||||
|
||||
self.read_html_toc(toc, self.base_path)
|
||||
self.read_html_toc(toc)
|
||||
except:
|
||||
pass
|
||||
print 'WARNING: Could not read Table of Contents:'
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
print 'Continuing anyway'
|
||||
else:
|
||||
cwd = os.path.abspath(self.base_path)
|
||||
m = glob.glob(os.path.join(cwd, '*.ncx'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user