From 0756cd208bc9443d1bffe874af80bbe1c23df7cf Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 16 Jul 2024 21:27:35 +0000 Subject: [PATCH] Wrong error to catch --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index a0c8aaa..43aed7b 100644 --- a/server.py +++ b/server.py @@ -118,7 +118,7 @@ async def handleClient(reader, writer): await asyncio.wait_for( reader.read(), 0.01 ) # Silently consume the excess username data - except asyncio.TimeoutError: + except TimeoutError: pass if not name: writer.write(b"Nice try. Actually set a nick.\n") @@ -193,7 +193,7 @@ Please note that this is not network level statistics.\n""".encode( G.S2SLogs.append(("M", (name, request), G.remoteID)) if response: G.msgs.append(response) - except asyncio.TimeoutError: + except TimeoutError: pass if msgIndex < len(G.msgs): writer.writelines(G.msgs[msgIndex:])