Mercurial > p > roundup > code
diff CHANGES.txt @ 6557:8687c096a945
Handle configparser.InterpolationSyntaxError
Under Python 3, an option value with a single % (e.g. this % is a
test) throws
configparser.InterpolationSyntaxError: '%' must be followed by
'%' or '(', found: '%s))'
Added code to capture this, raise a different exception. roundup-admin
handles the error and exits cleanly. Other code shows the traceback.
The new error message reports the file, section and option causing the
problem to allow easier repair.
Also updated roundup translations and added tests.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 13 Dec 2021 12:48:57 -0500 |
| parents | 34cbd0e633d2 |
| children | 21c7c2041a4b |
line wrap: on
line diff
--- a/CHANGES.txt Sun Dec 12 23:42:44 2021 -0500 +++ b/CHANGES.txt Mon Dec 13 12:48:57 2021 -0500 @@ -56,6 +56,9 @@ config_ini.ini overrides. Needed for jinja to set template lang etc. Recognize minimal template when presented with a full path. (John Kristensen (jerrykan) and John Rouillard) +- handle configparser.InterpolationSyntaxError raised if value + has a single %. Seems to afect python 3 only. Reported by + nomicon on IRC. (John Rouillard) Features:
