]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Bug #233259] Ugly traceback for DistutilsPlatformError
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Nov 2002 16:18:24 +0000 (16:18 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Nov 2002 16:18:24 +0000 (16:18 +0000)
  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.

Lib/distutils/core.py

index 001e74be47f25e95ec3919528887b8b0479bca12..51961454f6b9143ec402ef0382cc902b6f0ffeef 100644 (file)
@@ -145,9 +145,7 @@ def setup (**attrs):
             else:
                 raise SystemExit, error
 
-        except (DistutilsExecError,
-                DistutilsFileError,
-                DistutilsOptionError,
+        except (DistutilsError,
                 CCompilerError), msg:
             if DEBUG:
                 raise