]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Don't swallow exceptions in _write_frame 2045/head
authorBen Darnell <ben@bendarnell.com>
Sat, 20 May 2017 16:09:58 +0000 (12:09 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 20 May 2017 17:26:23 +0000 (13:26 -0400)
commit73c48f328c247a40c444a9e0fdee65157231fff7
tree12a1bfe3aeda58a36fc1ccdee63f028bdb37e3a0
parent6595297b2b733f22ee75ccdbc95f5638c5dc5484
websocket: Don't swallow exceptions in _write_frame

Swallowing the exception violated the method's interface (by returning
None instead of a Future), and differs from stream-closed behavior in
other contexts in Tornado.

Fixes #1980
tornado/test/websocket_test.py
tornado/websocket.py