@ -401,7 +401,7 @@ class Bureau(object):
if self.log.getEffectiveLevel() == logging.DEBUG:
with open("/tmp/debug.html", "w") as html_out:
html_out.write(html_rendered)
html_out.write(templ.render_unicode(**kwargs))
self.log.debug("debug html output at /tmp/debug.html")
html_rendered.write_pdf(pdfpath)