We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7d05e commit 59e4415Copy full SHA for 59e4415
tuttle/rendering.py
@@ -33,9 +33,10 @@ def convert_html_to_pdf(
33
source_dir (_type_): _description_
34
dest_dir (_type_): _description_
35
"""
36
+ logger.info(f"converting html to pdf: {in_path} -> {out_path}")
37
try:
38
pdfkit.from_file(input=in_path, output_path=out_path, css=css_paths)
- except OSError:
39
+ except OSError as ex:
40
# Exit with code 1 due to network error: ProtocolUnknownError
41
# ignore this error since a correct output is produced anyway
42
pass
0 commit comments