Currently, RuntimeErrors are raised. Not only are they not the most appropriate standard-library exception (usually ValueError would be used), but it's standard to raise a custom Exception for parsing errors (eg pytomlpp.ParseError or pytomlpp.DecodeError or pytomlpp.TOMLDecodeError etc)
Currently, RuntimeErrors are raised. Not only are they not the most appropriate standard-library exception (usually ValueError would be used), but it's standard to raise a custom Exception for parsing errors (eg
pytomlpp.ParseError
orpytomlpp.DecodeError
orpytomlpp.TOMLDecodeError
etc)