ESPRI-Mod / synda

ESGF Downloader (this is a deprecated repository, the tool has now moved to https://github.com/ESGF/esgf-download)
https://espri-mod.github.io/synda/
21 stars 11 forks source link

"%" in password is interpreted as formatting operator #197

Open dhohn opened 2 years ago

dhohn commented 2 years ago

I happen to have a "%" character in my openid pwd. When I enter it as is in the credentials file (or the init wizard) it is recognised as the python formatting operator.

configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: 'somepartialpassword'

A workaround is to escape it like "%%" or just changing password.

A solution is probably disabling interpolation in configparser e.g. ConfigParser(interpolation=None).