]> git.ipfire.org Git - thirdparty/tornado.git/commit
Catch all exceptions, not just {OS,IO}Error in IOLoop.remove_handler.
authorBen Darnell <ben@bendarnell.com>
Fri, 7 Dec 2012 19:19:48 +0000 (14:19 -0500)
committerBen Darnell <ben@bendarnell.com>
Fri, 7 Dec 2012 19:27:53 +0000 (14:27 -0500)
commitc6593a38c08ea366c60c50e086f2c600ffa56179
treee2b8abaf72973baf087b0924d88f5b2cda49dca4
parent4ca0a0f29451d690c34d35eb443c7cc65af32052
Catch all exceptions, not just {OS,IO}Error in IOLoop.remove_handler.

Attempting to remove a non-existent fd raises IOError on epoll
but KeyError on kqueue; this change swallows any exeption to make
both platforms consistent.
tornado/ioloop.py
tornado/platform/twisted.py
tornado/test/ioloop_test.py