From: Andrew M. Kuchling Date: Fri, 8 Nov 2002 16:18:24 +0000 (+0000) Subject: [Bug #233259] Ugly traceback for DistutilsPlatformError X-Git-Tag: v2.3c1~3512 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91e77536e8285bd2276a40bb891efc9001b9f8a6;p=thirdparty%2FPython%2Fcpython.git [Bug #233259] Ugly traceback for DistutilsPlatformError Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode. --- diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 001e74be47f2..51961454f6b9 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -145,9 +145,7 @@ def setup (**attrs): else: raise SystemExit, error - except (DistutilsExecError, - DistutilsFileError, - DistutilsOptionError, + except (DistutilsError, CCompilerError), msg: if DEBUG: raise