add some debugging for pre-rendered html

workspace
Brendan Howell 4 years ago
parent 464ae3db82
commit 69f3587f4d

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

Loading…
Cancel
Save