diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index 8651fdeaca..b993ef4d0e 100644 --- a/docs/topics/templates.txt +++ b/docs/topics/templates.txt @@ -514,7 +514,7 @@ fictional ``foobar`` template library:: def from_string(self, template_code): try: - return Template(self.engine.from_string(template_code)) + return Template(self.engine.from_string(template_code)) except foobar.TemplateCompilationFailed as exc: raise TemplateSyntaxError(exc.args)