Merge pull request #92 from jhoekx/fix-template-exception
Fix except statement in template module.
This commit is contained in:
commit
f82cc59d43
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue