mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-12 08:14:17 +00:00
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:
1 parent
f525cc9611
commit
07759f67cb
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user