- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Description
- To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
- OS version and name:
Ubuntu 18.04.3 LTS
- Pendulum version:
2.1.1
Issue
Parsing any string that begins or ends with a slash returns a IndexError
instead of 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
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity