Fix running on Python 3.8 (#161)

3.8 removes the asyncio.streams re-export of `IncompleteReadError`, so just access it directly from `asyncio`, like everywhere else in the code already does.
This commit is contained in:
K900
2019-11-11 14:04:14 +03:00
committed by Alexander Bersenev
parent f525cc9611
commit 07759f67cb

View File

@@ -1533,7 +1533,7 @@ async def handle_client(reader_clt, writer_clt):
update_user_stats(user, octets=len(data), msgs=1)
wr.write(data, extra)
await wr.drain()
except (OSError, asyncio.streams.IncompleteReadError) as e:
except (OSError, asyncio.IncompleteReadError) as e:
# print_err(e)
pass