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

Fix except statement in template module.
This commit is contained in:
Michael DeHaan 2012-03-30 04:50:14 -07:00
commit f82cc59d43

View file

@ -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