Commit 1c90d7ab authored by Skip Montanaro's avatar Skip Montanaro

tighten up except - os.close only raises OSError

see bug 411881
parent 8e5fd53b
......@@ -62,7 +62,7 @@ class Popen3:
for i in range(3, MAXFD):
try:
os.close(i)
except:
except OSError:
pass
try:
os.execvp(cmd[0], cmd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment