dobesv
2014-02-26 8c6fe86949fc8421e8a9d185da9c8e683ea584ac
Fix documentation for add_notfound_view()

It referred to HTTPForbidden as the exception instead of HTTPNotFound.
1 files modified
2 ■■■ changed files
pyramid/config/views.py 2 ●●● patch | view | raw | blame | history
pyramid/config/views.py
@@ -1621,7 +1621,7 @@
        ):
        """ Add a default notfound view to the current configuration state.
        The view will be called when Pyramid or application code raises an
        :exc:`pyramid.httpexceptions.HTTPForbidden` exception (e.g. when a
        :exc:`pyramid.httpexceptions.HTTPNotFound` exception (e.g. when a
        view cannot be found for the request).  The simplest example is:
          .. code-block:: python