mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-13 23:03:09 +00:00
do not output canceled errors to get rid from scarry traceback on the proxy termination
This commit is contained in:
@@ -1493,7 +1493,9 @@ async def handle_client(reader_clt, writer_clt):
|
||||
async def handle_client_wrapper(reader, writer):
|
||||
try:
|
||||
await handle_client(reader, writer)
|
||||
except (asyncio.IncompleteReadError, ConnectionResetError, TimeoutError):
|
||||
except (asyncio.IncompleteReadError, asyncio.CancelledError):
|
||||
pass
|
||||
except (ConnectionResetError, TimeoutError):
|
||||
pass
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
Reference in New Issue
Block a user