mirror of https://github.com/python/cpython
Missed one because of indirection.
This commit is contained in:
parent
50da60cc5b
commit
5dfe0def67
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue