tighten up except - os.close only raises OSError

see bug 411881
This commit is contained in:
Skip Montanaro 2002-03-24 20:48:26 +00:00
parent 8e5fd53be0
commit 1c90d7ab3c
1 changed files with 1 additions and 1 deletions

View File

@ -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)