From d34a15bca3a30d446ca22ca1159734656d0ee782 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Fri, 23 Aug 2019 23:55:26 +0500 Subject: [PATCH] nicer exception printing --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 995b343..553a439 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1491,7 +1491,7 @@ async def handle_client_wrapper(reader, writer): await handle_client(reader, writer) except (asyncio.IncompleteReadError, ConnectionResetError, TimeoutError): pass - except: + except Exception: traceback.print_exc() finally: writer.transport.abort()