Fix use of exc_info on TemplateSyntaxError