Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2e2c29

Browse files
committed
Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
1 parent b361233 commit b2e2c29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def setup (**attrs):
9696
"error: %s: %s" % (exc.filename, exc.strerror)
9797
else:
9898
raise SystemExit, str (exc)
99-
except DistutilsExecError, msg:
99+
except (DistutilsExecError, DistutilsFileError), msg:
100100
raise SystemExit, "error: " + str (msg)
101101

102102
# setup ()

0 commit comments

Comments
 (0)