When removing indexing/slicing on exceptions some places were changed

inappropriately from ``e[0]`` to ``e.message`` instead of ``e.args[0]``.  The
reason it needs to be the last option is the dichotomy of 'message' and 'args':
'message' can be the empty string but args[0] can have a value if more than one
argument was passed.
This commit is contained in:
Brett Cannon 2007-03-21 22:26:20 +00:00
parent 3a38362592
commit ca477b2280
2 changed files with 2 additions and 2 deletions

View file

@ -569,7 +569,7 @@ class ConfigParser(RawConfigParser):
value = value % vars
except KeyError as e:
raise InterpolationMissingOptionError(
option, section, rawval, e.message)
option, section, rawval, e.args[0])
else:
break
if "%(" in value: