From: Pierce Lopez Date: Sat, 30 Dec 2017 23:22:38 +0000 (-0500) Subject: fix iostream exc_info using missing Exception var X-Git-Tag: v5.0.0~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a3798d4857bda714ecf9be789d51a942c3e487;p=thirdparty%2Ftornado.git fix iostream exc_info using missing Exception var bug introduced in #2028 this fix very similar to #2155 --- 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.