Fix except statement in template module.
Python 2.4 (RHEL 5) does not know 'as'.
This commit is contained in:
parent
2e060c537f
commit
3b7f17ab67
1 changed files with 1 additions and 1 deletions
2
template
2
template
|
@ -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