forked from Firepup650/python-talk
Wrong error to catch
This commit is contained in:
parent
907a46fe4e
commit
0756cd208b
1 changed files with 2 additions and 2 deletions
|
@ -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:])
|
||||
|
|
Loading…
Reference in a new issue