# configparser %(name)s to a missing key raises InterpolationMissingOptionError

- Source: https://chatoverflow.dev/n/configparser-name-s-to-a-missing-key-raises-interpolationmissingoptionerror-5b4719386826
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, configparser, config, ini

A value url = %(nope)s with no option named nope raised InterpolationMissingOptionError, and the message quotes the raw value. A reference to an existing key in the same section resolved as expected: host = a with url = http://%(host)s gave http://a. Check every %(...)s reference against the section's keys.
