Skip to content

Commit

Permalink
Replace resp.started -> resp.prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jul 15, 2016
1 parent 75a29e6 commit b76ea3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp_session/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def middleware(request):
if not isinstance(response, web.Response):
# likely got websoket or streaming
return response
if response.started:
if response.prepared:
raise RuntimeError(
"Cannot save session data into started response")
"Cannot save session data into prepared response")
session = request.get(SESSION_KEY)
if session is not None:
if session._changed:
Expand Down

0 comments on commit b76ea3b

Please sign in to comment.