Commit 61150117 authored by Greg Ward's avatar Greg Ward

Catch DistutilsOptionError in 'setup()' -- it's thrown either because of

errors in the setup script or on the command line, so shouldn't result
in a traceback.
parent f4b22519
...@@ -96,7 +96,9 @@ def setup (**attrs): ...@@ -96,7 +96,9 @@ def setup (**attrs):
"error: %s: %s" % (exc.filename, exc.strerror) "error: %s: %s" % (exc.filename, exc.strerror)
else: else:
raise SystemExit, str (exc) raise SystemExit, str (exc)
except (DistutilsExecError, DistutilsFileError), msg: except (DistutilsExecError,
DistutilsFileError,
DistutilsOptionError), msg:
raise SystemExit, "error: " + str (msg) raise SystemExit, "error: " + str (msg)
# setup () # setup ()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment