summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keystone/common/wsgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py
index 91f38d09..53279c1a 100644
--- a/keystone/common/wsgi.py
+++ b/keystone/common/wsgi.py
@@ -415,7 +415,8 @@ class Router(object):
"""
match = req.environ['wsgiorg.routing_args'][1]
if not match:
- return webob.exc.HTTPNotFound()
+ return render_exception(
+ exception.NotFound(message='The resource could not be found.'))
app = match['controller']
return app