diff options
author | Greg Ward <gward@python.net> | 2000-04-09 03:49:20 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-04-09 03:49:20 (GMT) |
commit | b2e2c29295a5b41f17704bb3d654a7b44d09737c (patch) | |
tree | 498f4714b174fceea478150bdabd65b867535cb0 /Lib/distutils/core.py | |
parent | b361233c76acd85df2c4a3946662d88897963851 (diff) | |
download | cpython-b2e2c29295a5b41f17704bb3d654a7b44d09737c.zip cpython-b2e2c29295a5b41f17704bb3d654a7b44d09737c.tar.gz cpython-b2e2c29295a5b41f17704bb3d654a7b44d09737c.tar.bz2 |
Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 3df54a5..9a80106 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -96,7 +96,7 @@ def setup (**attrs): "error: %s: %s" % (exc.filename, exc.strerror) else: raise SystemExit, str (exc) - except DistutilsExecError, msg: + except (DistutilsExecError, DistutilsFileError), msg: raise SystemExit, "error: " + str (msg) # setup () |