diff --git a/pipe_io_server/pipe_writer_thread.py b/pipe_io_server/pipe_writer_thread.py index 822c868..b8e217f 100644 --- a/pipe_io_server/pipe_writer_thread.py +++ b/pipe_io_server/pipe_writer_thread.py @@ -43,6 +43,6 @@ class PipeWriterThread(Thread): def _unblock(self): self._write_queue.push_front(None) - with suppress(OSError): + with suppress(OSError, TypeError): while read(self._drain_fd, 65536): pass