diff --git a/tornado/template.py b/tornado/template.py index a7efa47e74..35bd1c23f4 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -257,12 +257,7 @@ def generate(self, **kwargs): # we've generated a new template (mainly for this module's # unittests, where different tests reuse the same name). linecache.clearcache() - try: - return execute() - except Exception: - formatted_code = _format_code(self.code).rstrip() - app_log.error("%s code:\n%s", self.name, formatted_code) - raise + return execute() def _generate_python(self, loader, compress_whitespace): buffer = cStringIO.StringIO()