[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.
This commit is contained in:
Andrew M. Kuchling 2002-11-08 16:18:24 +00:00
parent 706867c20c
commit 91e77536e8
1 changed files with 1 additions and 3 deletions

View File

@ -145,9 +145,7 @@ def setup (**attrs):
else: else:
raise SystemExit, error raise SystemExit, error
except (DistutilsExecError, except (DistutilsError,
DistutilsFileError,
DistutilsOptionError,
CCompilerError), msg: CCompilerError), msg:
if DEBUG: if DEBUG:
raise raise