Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5dfe0de

Browse files
committed
Missed one because of indirection.
1 parent 50da60c commit 5dfe0de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def grok_environment_error (exc, prefix="error: "):
269269
# include the filename in the exception object!
270270
error = prefix + "%s" % exc.strerror
271271
else:
272-
error = prefix + str(exc[-1])
272+
error = prefix + str(exc.args[-1])
273273

274274
return error
275275

0 commit comments

Comments
 (0)