os.fork raises AttributeError, not NameError, if fork() isn't

supported.  Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
This commit is contained in:
Fred Drake 1999-10-18 13:43:44 +00:00
parent 40e84db0f4
commit 14bb71d553
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
try:
os.fork
except NameError:
except AttributeError:
raise SystemError, __name__ + " requires os.fork()"