diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index 99c20fd..1cb78e3 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -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")