aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 15:55:34 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 15:55:34 -0500
commit3807e8e29c68a44140044ae7711f229dfef5af51 (patch)
treede4530e97f0713dc9ff124c27df4fc6cfb264dd0
parentbae8f3d8c20b5724abf5ac99776ae582d0a94689 (diff)
downloadmediagoblin-3807e8e29c68a44140044ae7711f229dfef5af51.tar.lz
mediagoblin-3807e8e29c68a44140044ae7711f229dfef5af51.tar.xz
mediagoblin-3807e8e29c68a44140044ae7711f229dfef5af51.zip
Tacking on an empty matchdict when 404'ing just in case a template expects it
-rw-r--r--mediagoblin/app.py1
1 files changed, 1 insertions, 0 deletions
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'])