Closed davila-vilanova closed 2 months ago
Thanks @davila-vilanova for your PR, I'll have a look shortly.
Could you rebase your branch though?
Looks like a test coverage gap appeared. You can find it with pytest --cov=whenever --cov-report html
and opening htmlcov/index.html
Branch rebased.
The coverage gap came from two raise
statements that were not supposed to ever execute within the then current possible codepaths but were there in case the happy path condition got out of sync with the individual error checks under it, as a kind of insurance.
They are no longer necessary as I've removed the individual error checks -- coverage is back to 100%.
🙏 thanks for your contribution! It may be a while before this rolls out in a release though, since it's technically a backwards incompatible change (an exception was removed) and I'd like to bundle it with others if possible.
🙏 thanks for your contribution!
Thank you!
it's technically a backwards incompatible change (an exception was removed) and I'd like to bundle it with others if possible.
Makes sense.
Description
Addresses issue https://github.com/ariebovenberg/whenever/issues/94.
Summary of changes
InvalidFormat
error type, always raiseValueError
when parsing fails.ValueError
is raised,ValueErrors
.Checklist