Patch for an Issue #589

This commit is contained in:
Miroslav Stampar 2013-12-28 13:47:40 +01:00
parent 6c80f2903b
commit 41d6c1af82

View File

@ -120,7 +120,7 @@ class Popen(subprocess.Popen):
nAvail = maxsize
if nAvail > 0:
(errCode, read) = ReadFile(x, nAvail, None)
except ValueError:
except (ValueError, NameError):
return self._close(which)
except (subprocess.pywintypes.error, Exception), why:
if why[0] in (109, errno.ESHUTDOWN):