mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-12 14:15:04 +00:00
do not output canceled errors to get rid from scarry traceback on the proxy termination
This commit is contained in:
1 parent
3315ac1df6
commit
ff6b826e13
1 file changed
+3
-1
+3
-1
@@ -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