amitt001 / delegator.py

Subprocesses for Humans 2.0.
MIT License
1.7k stars 92 forks source link

Don't read from finished subprocess #33

Closed nateprewitt closed 6 years ago

nateprewitt commented 6 years ago

When block() is called on a subprocess that's already been closed, it throws an opaque exception in the Python standard library. We should simply return to the user when block() is called on a finished process because there is no more work to be done.