Skip to content
Myr

None responses fail properly now. This fixes #24

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d0eefb0 · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:flask.py+1 added-4 removed
750 unmodified lines
751752 :param rv: the return value from the view function753 """754 if rv is None:755 from warnings import warn756 warn(Warning('View function did not return a response'),757 stacklevel=2)758 return u''755 raise ValueError('View function did not return a response')756 if isinstance(rv, self.response_class):757 return rv758 if isinstance(rv, basestring):759 return self.response_class(rv)
92 unmodified lines