From: TianZhen Date: Tue, 19 Sep 2017 09:44:15 +0000 (+0800) Subject: fix: iostream exception alias X-Git-Tag: v5.0.0~55^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2155%2Fhead;p=thirdparty%2Ftornado.git fix: iostream exception alias --- diff --git a/tornado/iostream.py b/tornado/iostream.py index 6097e9712..632952b52 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -554,7 +554,7 @@ class BaseIOStream(object): except UnsatisfiableReadError as e: gen_log.info("Unsatisfiable read, closing connection: %s" % e) self.close(exc_info=e) - except Exception: + except Exception as e: gen_log.error("Uncaught exception, closing connection.", exc_info=True) self.close(exc_info=e)