[Python-checkins] python/dist/src/Lib/distutils core.py,1.53,1.54
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Fri, 08 Nov 2002 08:18:26 -0800
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv6391
Modified Files:
core.py
Log Message:
[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.
Index: core.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/core.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** core.py 7 Nov 2002 16:41:38 -0000 1.53
--- core.py 8 Nov 2002 16:18:24 -0000 1.54
***************
*** 146,152 ****
raise SystemExit, error
! except (DistutilsExecError,
! DistutilsFileError,
! DistutilsOptionError,
CCompilerError), msg:
if DEBUG:
--- 146,150 ----
raise SystemExit, error
! except (DistutilsError,
CCompilerError), msg:
if DEBUG: