Skip to content

Improve usability of khal list -d absent#1442

Merged
WhyNotHugo merged 1 commit intopimutils:masterfrom
mgumz:improve/relax-list-filtering
Mar 24, 2026
Merged

Improve usability of khal list -d absent#1442
WhyNotHugo merged 1 commit intopimutils:masterfrom
mgumz:improve/relax-list-filtering

Conversation

@mgumz
Copy link
Copy Markdown

@mgumz mgumz commented Nov 15, 2025

If a user provides an absent calendar name to be filtered out with khal list -d, an error is raised and the call stack is thrown at the user (24 lines of internals with a final "KeyError: 'absent').

To improve the usability, this improvement catches this situation and properly tells the user what happend and how to remedy the situation, just like -a absent would do.

If a user provides an absent calendar name to be filtered out with `khal
list -d`, an error is raised and the call stack is thrown at the user
(24 lines of internals with a final "KeyError: 'absent').

To improve the usability, this commit catches this situation and
properly tells the user what happend and how to remedy the situation,
just like `-a absent` would do.
@WhyNotHugo WhyNotHugo force-pushed the improve/relax-list-filtering branch from bd6c0b3 to 8fddec1 Compare March 24, 2026 15:30
@WhyNotHugo
Copy link
Copy Markdown
Member

Nice, thanks!

@WhyNotHugo WhyNotHugo merged commit 480d833 into pimutils:master Mar 24, 2026
1 check passed
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.

2 participants