From: Christopher Allan Webber Date: Sat, 20 Aug 2011 20:55:34 +0000 (-0500) Subject: Tacking on an empty matchdict when 404'ing just in case a template expects it X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3807e8e29c68a44140044ae7711f229dfef5af51;p=mediagoblin.git Tacking on an empty matchdict when 404'ing just in case a template expects it --- diff --git a/mediagoblin/app.py b/mediagoblin/app.py index 1a115a22..3030929d 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -133,6 +133,7 @@ class MediaGoblinApp(object): return request.get_response(redirect)(environ, start_response) # Okay, no matches. 404 time! + request.matchdict = {} # in case our template expects it return util.render_404(request)(environ, start_response) controller = util.import_component(route_match['controller'])