diff options
author | Collin Winter <collinw@gmail.com> | 2007-07-17 00:38:21 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-07-17 00:38:21 (GMT) |
commit | 2c8fef07f68e49ac88195b429fb7a692ee9cc5cf (patch) | |
tree | bb0fbf3e68aa89a8b939ec5faeca10462359024f /Lib/distutils | |
parent | e63bae6b09763bd00908af96fc89b9ce52f89072 (diff) | |
download | cpython-2c8fef07f68e49ac88195b429fb7a692ee9cc5cf.zip cpython-2c8fef07f68e49ac88195b429fb7a692ee9cc5cf.tar.gz cpython-2c8fef07f68e49ac88195b429fb7a692ee9cc5cf.tar.bz2 |
Fix a bug in distutils.core's error handling.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 6242775..bd9b854 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -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 |