Merge pull request #92 from jhoekx/fix-template-exception

Fix except statement in template module.
pull/96/head
Michael DeHaan 14 years ago
commit f82cc59d43

@ -97,7 +97,7 @@ try:
# call Jinja2 here and save the new template file
template = environment.from_string(source)
data_out = template.render(data)
except jinja2.TemplateError as e:
except jinja2.TemplateError, e:
print json.dumps({
"failed": True,
"msg" : e.message

Loading…
Cancel
Save