This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients Stig Johan Berggren, lukasz.langa, methane
Date 2018-08-08.15:06:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533740766.08.0.56676864532.issue34242@psf.upfronthosting.co.za>
In-reply-to
Content
> 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'
History
Date User Action Args
2018-08-08 15:06:06lukasz.langasetrecipients: + lukasz.langa, methane, Stig Johan Berggren
2018-08-08 15:06:06lukasz.langasetmessageid: <1533740766.08.0.56676864532.issue34242@psf.upfronthosting.co.za>
2018-08-08 15:06:06lukasz.langalinkissue34242 messages
2018-08-08 15:06:06lukasz.langacreate