Catch some exceptions.

This commit is contained in:
grossmj
2018-09-28 15:04:38 +02:00
parent 4efdefaf5a
commit 4d95e0b51f
3 changed files with 9 additions and 5 deletions

View File

@ -215,7 +215,7 @@ class AsyncioTelnetServer:
try:
writer.write_eof()
yield from writer.drain()
except ConnectionError:
except (AttributeError, ConnectionError):
continue
@asyncio.coroutine