Merge branch 'master' into module-support

This commit is contained in:
Armin Ronacher 2010-05-03 13:08:00 +02:00
commit ce53d10236
2 changed files with 4 additions and 4 deletions

View file

@ -931,10 +931,7 @@ class Flask(_PackageBoundObject):
: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):