From ddad73bca9072b3d4228c3d12965dbae72db2b46 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 22 Apr 2000 03:11:17 +0000 Subject: [PATCH] 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. --- Lib/distutils/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 9a801063c7..814f4418c1 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 () -- 2.50.1