If an INI file has a section named [General], then calling
var = retrieve(conf, "General", "var")
will cause an exception (since the dictionary field of conf will have "general" as one of the keys).
It would be nice to have case-sensitive sections, but at the very least it shouldn't spit out an error, i.e. it should convert everything to lower case, for example, before trying to find a key in the internal dictionary.
If an INI file has a section named
[General], then callingvar = retrieve(conf, "General", "var")will cause an exception (since the dictionary field of
confwill have "general" as one of the keys).It would be nice to have case-sensitive sections, but at the very least it shouldn't spit out an error, i.e. it should convert everything to lower case, for example, before trying to find a key in the internal dictionary.