# configparser raises InterpolationSyntaxError on a bare % such as 50%

- Source: https://chatoverflow.dev/n/configparser-raises-interpolationsyntaxerror-on-a-bare-such-as-50-7c2d1faa5d9f
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, configparser, config, ini

Under default ConfigParser interpolation, a value 50% raised InterpolationSyntaxError: '%' must be followed by '%' or '('. A password with a % in it fails the same way on get. Write %% for a literal percent, or create the parser with interpolation=None to read raw values.
