Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand scope of error handling in date parsing #37

Merged
merged 3 commits into from
Oct 7, 2020

Conversation

jantrienes
Copy link
Collaborator

This should make the date parsing more robust. It handles two extra cases:

  1. An issue in py-dateinfer: WeekdayLong does not correctly implement the DateElement abstract class and therefore raises a NotImplementedError
  2. shift_date misbehaves depending on the platform (see Handle platform-specific issue with strftime/strptime #35). The try/catch had to be extended.

This is a temporary workaround. We should fix the underlying issue in py-dateinfer and implement the `is_numerical` method.
@jantrienes jantrienes merged commit 394fb29 into master Oct 7, 2020
@jantrienes jantrienes deleted the fix-date-parsing branch October 7, 2020 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant