OpenDataServices / flatten-tool

Tools for generating CSV and other flat versions of the structured data
http://flatten-tool.readthedocs.io/en/latest/
MIT License
105 stars 15 forks source link

Use custom exceptions instead of ValueError #450

Closed jpmckinney closed 3 months ago

jpmckinney commented 4 months ago

For example:

https://github.com/OpenDataServices/flatten-tool/blob/1d1c662cd01916078fe401895bf8c4ddb6f176bd/flattentool/input.py#L1010-L1018

This will allow other tools to disambiguate errors raised by Flatten Tool from other errors (e.g. unexpected exceptions).

Bjwebb commented 3 months ago

This is now implemented in https://pypi.org/project/flattentool/0.26.0/