]> granicus.if.org Git - python/commitdiff
Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
authorGreg Ward <gward@python.net>
Sun, 9 Apr 2000 03:49:20 +0000 (03:49 +0000)
committerGreg Ward <gward@python.net>
Sun, 9 Apr 2000 03:49:20 +0000 (03:49 +0000)
Lib/distutils/core.py

index 3df54a5e831e3957466dfca4a9072e114b473d36..9a801063c7f01d5604e7b48b8eac1b41a4eafa94 100644 (file)
@@ -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 ()