Tacking on an empty matchdict when 404'ing just in case a template expects it

This commit is contained in:
Christopher Allan Webber 2011-08-20 15:55:34 -05:00
parent bae8f3d8c2
commit 3807e8e29c

View 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'])