Catch some exceptions.

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

No files matched your search

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