Author: collin.winter
Date: Tue Jul 17 02:38:21 2007
New Revision: 56410

Modified:
   python/branches/py3k-struni/Lib/distutils/core.py
Log:
Fix a bug in distutils.core's error handling.

Modified: python/branches/py3k-struni/Lib/distutils/core.py
==============================================================================
--- python/branches/py3k-struni/Lib/distutils/core.py   (original)
+++ python/branches/py3k-struni/Lib/distutils/core.py   Tue Jul 17 02:38:21 2007
@@ -112,10 +112,10 @@
         _setup_distribution = dist = klass(attrs)
     except DistutilsSetupError as msg:
         if 'name' not in attrs:
+            raise SystemExit, "error in setup command: %s" % msg
+        else:
             raise SystemExit, "error in %s setup command: %s" % \
                   (attrs['name'], msg)
-        else:
-            raise SystemExit, "error in setup command: %s" % msg
 
     if _setup_stop_after == "init":
         return dist
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to