Commit 12d01a34 by Jeroen Hoekx

Fix except statement in template module.

Python 2.4 (RHEL 5) does not know 'as'.
parent 2372a3b7
......@@ -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
......
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