mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 12:35:42 +01:00
oops2
This commit is contained in:
parent
c96bc93d3f
commit
7056e35aff
1 changed files with 3 additions and 2 deletions
|
|
@ -450,8 +450,9 @@ def get_valid_block(page):
|
|||
|
||||
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…
Reference in a new issue