summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index e0ae2e5..917f1d0 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