summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/view.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyramid/view.py b/pyramid/view.py
index 7f1e03199..c14a587ea 100644
--- a/pyramid/view.py
+++ b/pyramid/view.py
@@ -271,8 +271,7 @@ class AppendSlashNotFoundViewFactory(object):
from pyramid.view import AppendSlashNotFoundViewFactory
from pyramid.httpexceptions import HTTPNotFound
- def notfound_view(context, request):
- return HTTPNotFound('It aint there, stop trying!')
+ def notfound_view(context, request): return HTTPNotFound('nope')
custom_append_slash = AppendSlashNotFoundViewFactory(notfound_view)
config.add_view(custom_append_slash, context=NotFound)