Skip to content

Commit 59e4415

Browse files
committed
logging
1 parent cf7d05e commit 59e4415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tuttle/rendering.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ def convert_html_to_pdf(
3333
source_dir (_type_): _description_
3434
dest_dir (_type_): _description_
3535
"""
36+
logger.info(f"converting html to pdf: {in_path} -> {out_path}")
3637
try:
3738
pdfkit.from_file(input=in_path, output_path=out_path, css=css_paths)
38-
except OSError:
39+
except OSError as ex:
3940
# Exit with code 1 due to network error: ProtocolUnknownError
4041
# ignore this error since a correct output is produced anyway
4142
pass

0 commit comments

Comments
 (0)