From 92a3798d4857bda714ecf9be789d51a942c3e487 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sat, 30 Dec 2017 18:22:38 -0500 Subject: [PATCH] fix iostream exc_info using missing Exception var bug introduced in #2028 this fix very similar to #2155 --- tornado/iostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/iostream.py b/tornado/iostream.py index bfd8dae78..2c334d2f4 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -1388,7 +1388,7 @@ class SSLIOStream(IOStream): err.args[0] in (errno.EBADF, errno.ENOTCONN)): return self.close(exc_info=err) raise - except AttributeError: + except AttributeError as err: # On Linux, if the connection was reset before the call to # wrap_socket, do_handshake will fail with an # AttributeError. -- 2.47.2