Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
This commit is contained in:
parent
b361233c76
commit
b2e2c29295
|
@ -96,7 +96,7 @@ 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, msg:
|
except (DistutilsExecError, DistutilsFileError), msg:
|
||||||
raise SystemExit, "error: " + str (msg)
|
raise SystemExit, "error: " + str (msg)
|
||||||
|
|
||||||
# setup ()
|
# setup ()
|
||||||
|
|
Loading…
Reference in New Issue