None responses fail properly now. This fixes #24
This commit is contained in:
parent
d0eefb01d1
commit
9248a7baca
1 changed files with 1 additions and 4 deletions
5
flask.py
5
flask.py
|
|
@ -752,10 +752,7 @@ class Flask(object):
|
|||
:param rv: the return value from the view function
|
||||
"""
|
||||
if rv is None:
|
||||
from warnings import warn
|
||||
warn(Warning('View function did not return a response'),
|
||||
stacklevel=2)
|
||||
return u''
|
||||
raise ValueError('View function did not return a response')
|
||||
if isinstance(rv, self.response_class):
|
||||
return rv
|
||||
if isinstance(rv, basestring):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue