mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[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:
parent
706867c20c
commit
91e77536e8
1 changed files with 1 additions and 3 deletions
|
|
@ -145,9 +145,7 @@ class found in 'cmdclass' is used in place of the default, which is
|
|||
else:
|
||||
raise SystemExit, error
|
||||
|
||||
except (DistutilsExecError,
|
||||
DistutilsFileError,
|
||||
DistutilsOptionError,
|
||||
except (DistutilsError,
|
||||
CCompilerError), msg:
|
||||
if DEBUG:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue