]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Missed one because of indirection.
authorGeorg Brandl <georg@python.org>
Sun, 6 Jan 2008 21:41:49 +0000 (21:41 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Jan 2008 21:41:49 +0000 (21:41 +0000)
Lib/distutils/util.py

index e0ae2e5ea27f4ab714cdc97cb80f8a165d07c8f0..917f1d0b93fc596bbd42abe2fe935624174dcf03 100644 (file)
@@ -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