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 warnings #451

Closed jpmckinney closed 3 months ago

jpmckinney commented 4 months ago

DataErrorWarning is used in some places. The package should define its own class FlattenToolWarning(UserWarning) and have DataErrorWarning subclass it. FlattenToolWarning can be used for all other warnings if you don't want to invent further subclasses. This will make it easier to disambiguate warnings within flatten-tool, and between other sources.

Bjwebb commented 3 months ago

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