mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
a74cf1a3e4
commit
c3d70ce7e0
@ -88,7 +88,7 @@ def pdftohtml(output_dir, pdf_path, no_images, as_xml=False):
|
||||
logf.close()
|
||||
out = open(logf.name, 'rb').read().strip()
|
||||
if ret != 0:
|
||||
raise ConversionError(b'return code: %d\n%s' % (ret, out))
|
||||
raise ConversionError(b'pdftohtml failed with return code: %d\n%s' % (ret, out))
|
||||
if out:
|
||||
print "pdftohtml log:"
|
||||
print out
|
||||
|
Loading…
x
Reference in New Issue
Block a user