[New-bugs-announce] [issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

Pauser report at bugs.python.org
Fri Aug 7 07:10:23 EDT 2020


New submission from Pauser <christoph.panser at orsoft.de>:

Hello,
I tried to extend our config processing using the environment variables and the configparser module. 

On some machines (all windows) the configparser failed with an InterpolationSyntaxError ...
It seems that not resolved environment variables (e.g. "test":"%not_existing%") lead to this error.
I wrote little python test file reproducing the error and providing a very simple workaround to not fix all environments ;) Attention the bug is reproduced but the test is green ^^

I would be happy to remove the workaround as soon as possible ;)

----------
components: Library (Lib)
files: test_EnvironmentProcessing.py
messages: 374991
nosy: c_panser, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: InterpolationSyntaxError reading the (windows) environment with unresolved environment variables
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49375/test_EnvironmentProcessing.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41500>
_______________________________________


More information about the New-bugs-announce mailing list