ariebovenberg / whenever

⏰ Sensible and typesafe datetimes for Python
https://whenever.rtfd.io
MIT License
361 stars 7 forks source link

More consistent exception types and messages on parsing #94

Closed ariebovenberg closed 2 months ago

ariebovenberg commented 3 months ago

There are various parsing functions, such as from_canonical_format and from_rfc2822. However they don't behave consistently on exceptions. They either raise InvalidFormat or ValueError, and mostly don't include a descriptive message.

Going forward, the best solution should be:

ariebovenberg commented 2 months ago

Resolved in #106