rectify TimeoutError namespace

This commit is contained in:
jesopo 2020-04-26 15:17:08 +01:00
parent 60dfda48e0
commit e26190c283

View file

@ -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: