From 91e77536e8285bd2276a40bb891efc9001b9f8a6 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 8 Nov 2002 16:18:24 +0000 Subject: [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. --- Lib/distutils/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 001e74b..5196145 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 -- cgit v0.12