mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
oops
This commit is contained in:
parent
84e6a65425
commit
c96bc93d3f
@ -450,7 +450,10 @@ class HTMLConverter(object):
|
|||||||
|
|
||||||
if not self.top.parent:
|
if not self.top.parent:
|
||||||
if not previous:
|
if not previous:
|
||||||
self.top = get_valid_block(self.current_page)
|
previous = self.book.last_page()
|
||||||
|
if not previous:
|
||||||
|
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:
|
if not self.top or not self.top.parent:
|
||||||
raise ConversionError, self.file_name + ' does not seem to have any content'
|
raise ConversionError, self.file_name + ' does not seem to have any content'
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user