From b2e2c29295a5b41f17704bb3d654a7b44d09737c Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sun, 9 Apr 2000 03:49:20 +0000 Subject: [PATCH] Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'. --- Lib/distutils/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 3df54a5e831..9a801063c7f 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -96,7 +96,7 @@ def setup (**attrs): "error: %s: %s" % (exc.filename, exc.strerror) else: raise SystemExit, str (exc) - except DistutilsExecError, msg: + except (DistutilsExecError, DistutilsFileError), msg: raise SystemExit, "error: " + str (msg) # setup ()