try:
content = template.Template(contentlet.content, name=contentlet.name).render(context)
except template.TemplateSyntaxError, error:
try:
content = template.Template(contentlet.content, name=contentlet.name).render(context)
except template.TemplateSyntaxError, error: