]> git.ipfire.org Git - thirdparty/tornado.git/commit
auth: Fix error handling in 5.1 2496/head
authorBen Darnell <ben@bendarnell.com>
Sun, 16 Sep 2018 16:41:25 +0000 (12:41 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 16 Sep 2018 16:41:25 +0000 (12:41 -0400)
commitfcc0f4ea055d896538983bd7af1784fa9c301ffc
treef1812836cf8e29eb4461f23dcf7cf035384e7c09
parent5f5426c9e401d8b6924346318f0ccc62b1d7fd57
auth: Fix error handling in 5.1

In 5.1, callbacks in this module were moved from the http
client (which uses stack_context) to the Future (which does not).
These callbacks generally rely on the stack context for error
handling, so we must explicitly wrap everything.

Fixes #2483
tornado/auth.py
tornado/concurrent.py
tornado/test/auth_test.py