]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fix iostream exc_info using missing Exception var 2235/head
authorPierce Lopez <pierce.lopez@gmail.com>
Sat, 30 Dec 2017 23:22:38 +0000 (18:22 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Sat, 30 Dec 2017 23:22:38 +0000 (18:22 -0500)
bug introduced in #2028
this fix very similar to #2155

tornado/iostream.py

index bfd8dae789d61ffeba33adcf5d6cf8f614ee45ee..2c334d2f4566db06b87eb00c0f9ea17cc674ae35 100644 (file)
@@ -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.