Commit f82cc59d by Michael DeHaan

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

Fix except statement in template module.
parents 2372a3b7 12d01a34
...@@ -97,7 +97,7 @@ try: ...@@ -97,7 +97,7 @@ try:
# call Jinja2 here and save the new template file # call Jinja2 here and save the new template file
template = environment.from_string(source) template = environment.from_string(source)
data_out = template.render(data) data_out = template.render(data)
except jinja2.TemplateError as e: except jinja2.TemplateError, e:
print json.dumps({ print json.dumps({
"failed": True, "failed": True,
"msg" : e.message "msg" : e.message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment