How to fix Python’s ConfigParser or RawConfigParser’s raise KeyError(key) configparser.py”,__getitem__

Bryant Jimin Son
2 min readJan 24, 2022
This is to show how to troubleshoot Python’s ConfigParser or RawConfigParser’s raise KeyError(key)

I grabbed fewPython codes to get some work done and encountered a following error while running Python. I will hide few items that don’t need.

Basically, this file was looking for config.ini file and supposed to load into a config variable. An odd thing was that I expected this code to create…

--

--

Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.