diff options
author | Greg Ward <gward@python.net> | 2000-04-22 03:11:17 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-04-22 03:11:17 (GMT) |
commit | ddad73bca9072b3d4228c3d12965dbae72db2b46 (patch) | |
tree | c810b36b846a8b4938af1871fb901ebc8ba66ba1 /Lib | |
parent | db80754abcc49b8331a6da9d30c04dfcde815bc2 (diff) | |
download | cpython-ddad73bca9072b3d4228c3d12965dbae72db2b46.zip cpython-ddad73bca9072b3d4228c3d12965dbae72db2b46.tar.gz cpython-ddad73bca9072b3d4228c3d12965dbae72db2b46.tar.bz2 |
Catch DistutilsOptionError in 'setup()' -- it's thrown either because of
errors in the setup script or on the command line, so shouldn't result
in a traceback.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/core.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 9a80106..814f441 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -96,7 +96,9 @@ def setup (**attrs): "error: %s: %s" % (exc.filename, exc.strerror) else: raise SystemExit, str (exc) - except (DistutilsExecError, DistutilsFileError), msg: + except (DistutilsExecError, + DistutilsFileError, + DistutilsOptionError), msg: raise SystemExit, "error: " + str (msg) # setup () |