From 3b7f17ab67afef4ddcafd1b6db8690b9cfaed80e Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 30 Mar 2012 11:46:30 +0200 Subject: [PATCH] Fix except statement in template module. Python 2.4 (RHEL 5) does not know 'as'. --- template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template b/template index 03bdb18d573..3421f497ccc 100755 --- a/template +++ b/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