From 2c8fef07f68e49ac88195b429fb7a692ee9cc5cf Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Tue, 17 Jul 2007 00:38:21 +0000 Subject: Fix a bug in distutils.core's error handling. --- Lib/distutils/core.py | 4 ++-- 1 file 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 -- cgit v0.12