Skip to content

Commit

Permalink
fix exception description #1807
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 12, 2017
1 parent 8a7832a commit 11df8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def write(self, data):
if self._eof_sent:
raise RuntimeError("Cannot call write() after write_eof()")
if self._payload_writer is None:
raise RuntimeError("Cannot call write() before start()")
raise RuntimeError("Cannot call write() before prepare()")

return self._payload_writer.write(data)

Expand Down

0 comments on commit 11df8d2

Please sign in to comment.