We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ubuntu 18.04.3 LTS
2.1.1
Parsing any string that begins or ends with a slash returns a IndexError instead of ValueError:
IndexError
ValueError
>>> from pendulum.parsing import parse >>> parse("/2020") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/pendulum/pendulum/parsing/__init__.py", line 74, in parse return _normalize(_parse(text, **_options), **_options) File "/home/ubuntu/pendulum/pendulum/parsing/__init__.py", line 115, in _parse return _parse_iso8601_interval(text) File "/home/ubuntu/pendulum/pendulum/parsing/__init__.py", line 221, in _parse_iso8601_interval if first[0] == "P": IndexError: string index out of range
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Ubuntu 18.04.3 LTS
2.1.1
Issue
Parsing any string that begins or ends with a slash returns a
IndexError
instead ofValueError
:The text was updated successfully, but these errors were encountered: