]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix error handling in read_until_close 1482/head
authorMartin Sucha <martin.sucha@infinario.com>
Fri, 7 Aug 2015 13:42:48 +0000 (15:42 +0200)
committerMartin Sucha <martin.sucha@infinario.com>
Mon, 10 Aug 2015 12:25:21 +0000 (14:25 +0200)
commit27f508f4e98518119c310742f8e96d127bbeff82
tree613127a777cd1e6db37a08735872960e08b6ee27
parent376e1cef3f1ca01b4ddeb096639fb4aabd4fa068
Fix error handling in read_until_close

When a callback is supplied, the future is not created. Make sure
it is used only if it was initialized, otherwise we lose the
error that was originally raised.
tornado/iostream.py
tornado/test/iostream_test.py