From 2ecf0995e67a4fefb003e66a2490d4895b2c0b07 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 12 Aug 2019 15:50:30 +0200 Subject: [PATCH] Report fix. --- src/reporting/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reporting/utils.py b/src/reporting/utils.py index ef4b1d0b2..797542abf 100755 --- a/src/reporting/utils.py +++ b/src/reporting/utils.py @@ -32,7 +32,7 @@ def render_to_pdf(output_path, template, context=None, add_files=None): texml = BytesIO(rendered.encode('utf-8')) tempdir = mkdtemp(prefix="render_to_pdf-") tex_path = os.path.join(tempdir, "doc.tex") - with open(tex_path, 'w') as tex_file: + with open(tex_path, 'wb') as tex_file: Texml.processor.process(texml, tex_file, encoding="utf-8") if add_files: -- 2.20.1