Skip to content

Commit

Permalink
Merge branch 'master' into module-support
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 3, 2010
2 parents 36f659b + 9248a7b commit ce53d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/patterns/index.rst
Expand Up @@ -10,6 +10,9 @@ changes are they will open a database connection at the beginning of the
request and get the information of the currently logged in user. At the
end of the request, the database connection is closed again.

There are more user contributed snippets and patterns in the `Flask
Snippet Archives <http://flask.pocoo.org/snippets/>`_.

.. toctree::
:maxdepth: 2

Expand Down
5 changes: 1 addition & 4 deletions flask.py
Expand Up @@ -931,10 +931,7 @@ def make_response(self, rv):
: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):
Expand Down

0 comments on commit ce53d10

Please sign in to comment.