From 5dfe0def6711d0e59cd1949e842c3d9dd32b4e4f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Jan 2008 21:41:49 +0000 Subject: [PATCH] Missed one because of indirection. --- Lib/distutils/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index e0ae2e5ea27..917f1d0b93f 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -269,7 +269,7 @@ def grok_environment_error (exc, prefix="error: "): # include the filename in the exception object! error = prefix + "%s" % exc.strerror else: - error = prefix + str(exc[-1]) + error = prefix + str(exc.args[-1]) return error