diff Lib/ConfigParser.py @ 41274:bfc4e8046102

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.
author Brett Cannon <bcannon@gmail.com>
date Wed, 21 Mar 2007 22:26:20 +0000
parents 0ea52558bdfe
children 06145fbc7ab9
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Wed Mar 21 21:26:58 2007 +0000
+++ b/Lib/ConfigParser.py	Wed Mar 21 22:26:20 2007 +0000
@@ -569,7 +569,7 @@
                     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: