mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Missed one because of indirection.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user