mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-27 07:10:19 -05:00
oops2
This commit is contained in:
parent
c96bc93d3f
commit
7056e35aff
@ -450,8 +450,9 @@ class HTMLConverter(object):
|
||||
|
||||
if not self.top.parent:
|
||||
if not previous:
|
||||
previous = self.book.last_page()
|
||||
if not previous:
|
||||
try:
|
||||
previous = self.book.pages()[0]
|
||||
except IndexError:
|
||||
raise ConversionError, self.file_name + ' does not seem to have any content'
|
||||
self.top = get_valid_block(previous)
|
||||
if not self.top or not self.top.parent:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user