diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-10-28 23:12:41 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-10-28 23:12:41 +0000 |
| commit | 85078f4eb39c6827973292a628cdf5ff6b34249a (patch) | |
| tree | 2ec4d723643bfe73d2bd8f3f8e16415bc3e4acd4 /repoze/bfg/router.py | |
| parent | b8a620bbb842c59336f8513e0d97de1074e815dc (diff) | |
| download | pyramid-85078f4eb39c6827973292a628cdf5ff6b34249a.tar.gz pyramid-85078f4eb39c6827973292a628cdf5ff6b34249a.tar.bz2 pyramid-85078f4eb39c6827973292a628cdf5ff6b34249a.zip | |
- If the ``render_view_to_response`` function was called, if the
view was found and called, but it returned something that did not
implement IResponse, the error would pass by unflagged. This was
noticed when I created a view function that essentially returned
None, but received a NotFound error rather than a ValueError when
the view was rendered. This was fixed.
Diffstat (limited to 'repoze/bfg/router.py')
| -rw-r--r-- | repoze/bfg/router.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index febc7ad28..2850b14e3 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -60,10 +60,6 @@ class Router(object): app = HTTPNotFound(request.url) return app(environ, start_response) - if not is_response(response): - raise ValueError('response did not implement IResponse: %r' - % response) - dispatch(NewResponse(response)) start_response(response.status, response.headerlist) |
