-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid datemath expression can lead to NoneType #25
Comments
Thanks for bringing this up @iakum . I believe I have fixed it. Would you mind testing out branch issue_25 (PR should be linked in this issue) and see if that fixes your problem? If it does, I'll create version 1.5.3 and get it out on pypi |
PR for reference: #26 |
Works perfectly! Thanks |
perfect @iakum , i just release v1.5.4, let me know if that works for you and I will close this issue out. |
Works perfectly. Thanks a lot |
Hi,
when datemath gets an invalid argument, it can happen that
None
is returned instead of an exception.This is can lead to a weird NoneType if
datemath.datemath
is used instead ofdatemath.parse
.I use version 1.5.2 (latest). It would be great if both cases could raise a parse exception.
Thanks,
Kai
The text was updated successfully, but these errors were encountered: