Łukasz Langa <luk...@langa.pl> added the comment: > Maybe a ConfigParser object could have an option to raise errors, because > they are useful for discovering errors in config files.
For this option, use mapping access instead of `.get()`: >>> cp['section']['key'] Traceback (most recent call last): ... KeyError: 'key' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34242> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com