mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 02:23:17 +02:00
...
This commit is contained in:
parent
0319ad478a
commit
9bea79b1bb
1 changed files with 2 additions and 1 deletions
|
|
@ -118,12 +118,13 @@ def render_html_svg_workaround(path_to_html, log, width=590, height=750):
|
|||
def render_html_data(path_to_html, width, height):
|
||||
from calibre.ptempfile import TemporaryDirectory
|
||||
from calibre.utils.ipc.simple_worker import fork_job, WorkerError
|
||||
result = {}
|
||||
|
||||
def report_error(text=''):
|
||||
prints('Failed to render', path_to_html, 'with errors:', file=sys.stderr)
|
||||
if text:
|
||||
prints(text, file=sys.stderr)
|
||||
if result['stdout_stderr']:
|
||||
if result and result['stdout_stderr']:
|
||||
with open(result['stdout_stderr'], 'rb') as f:
|
||||
prints(f.read(), file=sys.stderr)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue