Fix except statement in template module.

Python 2.4 (RHEL 5) does not know 'as'.
pull/92/head
Jeroen Hoekx 13 years ago
parent 2372a3b734
commit 12d01a3444

@ -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…
Cancel
Save