rectify TimeoutError namespace
This commit is contained in:
parent
60dfda48e0
commit
e26190c283
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class Server(IServer):
|
|||
try:
|
||||
async with timeout(PING_TIMEOUT):
|
||||
data = await self._reader.read(1024)
|
||||
except asyncio.exceptions.TimeoutError:
|
||||
except asyncio.TimeoutError:
|
||||
if ping_sent:
|
||||
data = b"" # empty data means the socket disconnected
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue