mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Properly abort PDF conversion if an error occurs during rendering
This commit is contained in:
parent
77da4821bd
commit
d4819097f4
@ -184,7 +184,8 @@ class PDFWriter(QObject):
|
||||
self.painter.restore()
|
||||
|
||||
QTimer.singleShot(0, self.render_book)
|
||||
self.loop.exec_()
|
||||
if self.loop.exec_() == 1:
|
||||
raise Exception('PDF Output failed, see log for details')
|
||||
|
||||
if self.toc is not None and len(self.toc) > 0:
|
||||
self.doc.add_outline(self.toc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user