summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-11-08 16:18:24 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-11-08 16:18:24 (GMT)
commit91e77536e8285bd2276a40bb891efc9001b9f8a6 (patch)
tree01b7fc0e9acaba00000511db48d52d7dd78ca66d /Lib/distutils
parent706867c20c507c60cf26a20b25c10c3e4b7c3aa4 (diff)
downloadcpython-91e77536e8285bd2276a40bb891efc9001b9f8a6.zip
cpython-91e77536e8285bd2276a40bb891efc9001b9f8a6.tar.gz
cpython-91e77536e8285bd2276a40bb891efc9001b9f8a6.tar.bz2
[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.
Diffstat (limited to 'Lib/distutils')
-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 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