more details for template errors

workspace
Brendan Howell 8 years ago
parent 79f15e9246
commit aecc2902e3

@ -225,7 +225,7 @@ class Bureau(object):
# run template with kwargs
templfile = os.path.join(self.mdir, template)
self.log.debug("printing with template: %s", templfile)
templ = Template(filename=templfile)
templ = Template(filename=templfile, strict_undefined=True)
htmlfile.write(templ.render_unicode(**kwargs))
htmlfile.close()
#.encode('utf-8',

Loading…
Cancel
Save