Tacking on an empty matchdict when 404'ing just in case a template expects it
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 20 Aug 2011 20:55:34 +0000 (15:55 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 20 Aug 2011 20:55:34 +0000 (15:55 -0500)
mediagoblin/app.py

index 1a115a229f332fbb874faa923bc8cc207e55d876..3030929d8338ef46f1dcdcb02cce6af07f2efb95 100644 (file)
@@ -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'])