Closed toconnell closed 3 years ago
Added an up-front Jinja check:
diff --git a/app/routes.py b/app/routes.py
index c47d809..88c0280 100644
--- a/app/routes.py
+++ b/app/routes.py
@@ -64,6 +64,12 @@ def blog_content(view, asset):
flask.request with the 'view' and the 'asset' and then just do our normal
return for the blog. """
+ # do 404's here, rather than letting Jinja2 do them
+ try:
+ flask.render_template(view)
+ except jinja2.exceptions.TemplateNotFound:
+ return utils.http_404
+
This will be fixed in the March release.