Skip to content

Fix crash on unparseable datetime range in khal new -i - #1483

Open
John-Wassilak wants to merge 2 commits into
pimutils:masterfrom
John-Wassilak:fix-789-datetime-range-reprompt
Open

Fix crash on unparseable datetime range in khal new -i#1483
John-Wassilak wants to merge 2 commits into
pimutils:masterfrom
John-Wassilak:fix-789-datetime-range-reprompt

Conversation

@John-Wassilak

Copy link
Copy Markdown

Fixes #789.

khal new -i's datetime-range prompt crashed and discarded the whole event on an unparseable range instead of re-prompting, like the other fields in the same loop already do. Also improves the parse error to show a formatted example using the configured datetimeformat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On new event, with -i flag, daterange parsing error shouldn't wipe the whole event

1 participant