You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: Ubuntu 24.04
Pendulum version: 3.0.0
Issue
Current Behavior: pendulum.parse("") raises ValueError: year 0 is out of range. Apparently it should raise ParseError just like the case of passing a single-space string(pendulum.parse(" ")) which raises ParserError: Unable to parse string [ ] .
Expected Behavior:
It should raise ParserError: Unable to parse string [].
The text was updated successfully, but these errors were encountered:
I am on the latest Pendulum version.
I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: Ubuntu 24.04
Pendulum version: 3.0.0
Issue
Current Behavior:
pendulum.parse("")
raisesValueError: year 0 is out of range
. Apparently it should raise ParseError just like the case of passing a single-space string(pendulum.parse(" ")
) which raisesParserError: Unable to parse string [ ]
.Expected Behavior:
It should raise
ParserError: Unable to parse string []
.The text was updated successfully, but these errors were encountered: