Skip to content

Commit

Permalink
Cleanup AutoResponseBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Oct 15, 2024
1 parent 32f11f9 commit ebcfbd9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions emmett/routing/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def process(self, output: Any, response) -> str:
return self.route.app.templater.render(self.route.template, output)
except TemplateMissingError as exc:
raise HTTPStringResponse(404, body="{}\n".format(exc.message), cookies=response.cookies)
elif isinstance(output, str):
return output
elif isinstance(output, HTTPResponse):
if isinstance(output, str):
return output
return str(output)

0 comments on commit ebcfbd9

Please sign in to comment.