From 85078f4eb39c6827973292a628cdf5ff6b34249a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 28 Oct 2008 23:12:41 +0000 Subject: - 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. --- repoze/bfg/router.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'repoze/bfg/router.py') 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) -- cgit v1.2.3