jacebrowning / yorm

Automatic object-YAML mapping for Python.
https://yorm.readthedocs.io
MIT License
27 stars 6 forks source link

Determine what should happen with incompatible values #8

Closed jacebrowning closed 10 years ago

jacebrowning commented 10 years ago

For example, someone types:

var: abc

where var uses the Integer converter. What should happen?

jacebrowning commented 10 years ago

I'm thinking this should simply raise a ValueError or some custom extension that extends ValueError.