This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients c_panser, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware
Date 2020-08-07.15:08:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596812888.22.0.237385462963.issue41500@roundup.psfhosted.org>
In-reply-to
Content
There's multiple options:

1. Escape '%' in environment variables (%%not_existing%%) to avoid the exception

2. Switch to configparser.ExtendedInterpolation for the interpolation, which uses a different syntax that doesn't conflict with env. variables on Windows (but does conflict with that on Unix)

Note that regardless of the option ConfigParser will not expand the value of the environment variable reference. If you want to be able to interpolate env variables you need a different solution, for example by using the 'defaults' argument to ConfigParser and expand references using the ConfigParser interpolation syntax.
History
Date User Action Args
2020-08-07 15:08:08ronaldoussorensetrecipients: + ronaldoussoren, paul.moore, tim.golden, zach.ware, steve.dower, c_panser
2020-08-07 15:08:08ronaldoussorensetmessageid: <1596812888.22.0.237385462963.issue41500@roundup.psfhosted.org>
2020-08-07 15:08:08ronaldoussorenlinkissue41500 messages
2020-08-07 15:08:07ronaldoussorencreate