mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Missed one because of indirection.
This commit is contained in:
parent
50da60cc5b
commit
5dfe0def67
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue