Fix a bug in distutils.core's error handling.

This commit is contained in:
Collin Winter 2007-07-17 00:38:21 +00:00
parent e63bae6b09
commit 2c8fef07f6
1 changed files with 2 additions and 2 deletions

View File

@ -112,10 +112,10 @@ def setup (**attrs):
_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