Skip to content

fix: replace bare except with except Exception in backend.py - #1467

Merged
WhyNotHugo merged 1 commit into
pimutils:masterfrom
KeloYuan:fix/bare-except-improvements
May 8, 2026
Merged

WhyNotHugo merged 1 commit into
pimutils:masterfrom
KeloYuan:fix/bare-except-improvements

Conversation

@KeloYuan

@KeloYuan KeloYuan commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces bare except: with except Exception: in khal/khalendar/backend.py (line 101).

Why

Bare except: catches SystemExit and KeyboardInterrupt, which can mask Ctrl+C handling and make debugging harder.

Bare except: catches SystemExit and KeyboardInterrupt.
Copilot AI review requested due to automatic review settings May 8, 2026 13:07

This comment was marked as spam.

@WhyNotHugo

Copy link
Copy Markdown
Member

Sounds correct to me. Thanks.

@WhyNotHugo
WhyNotHugo merged commit 8c925c7 into pimutils:master May 8, 2026
8 of 9 checks passed
@KeloYuan

KeloYuan commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Sounds correct to me. Thanks.

You' are welcome

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.

3 participants