summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-11-08 16:18:24 +0000
committerAndrew M. Kuchling <amk@amk.ca>2002-11-08 16:18:24 +0000
commit91e77536e8285bd2276a40bb891efc9001b9f8a6 (patch)
tree01b7fc0e9acaba00000511db48d52d7dd78ca66d
parent706867c20c507c60cf26a20b25c10c3e4b7c3aa4 (diff)
downloadcpython-git-91e77536e8285bd2276a40bb891efc9001b9f8a6.tar.gz
[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.
-rw-r--r--Lib/distutils/core.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 001e74be47..51961454f6 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