Skip to content

Avoid bare except#103

Merged
Kalmat merged 1 commit into
Kalmat:masterfrom
Avasam:Avoid-bare-except
Jun 21, 2026
Merged

Avoid bare except#103
Kalmat merged 1 commit into
Kalmat:masterfrom
Avasam:Avoid-bare-except

Conversation

@Avasam

@Avasam Avasam commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Replaced bare except: clauses with except Exception:, preventing accidental suppression of system-exit signals (KeyboardInterrupt, SystemExit) during error handling. Which is almost never intended.

@Kalmat

Kalmat commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Same question for this one... should I merge it now?

@Avasam

Avasam commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

Yeah you can merge it now.

@Kalmat

Kalmat commented Jun 18, 2026

Copy link
Copy Markdown
Owner

It raises a conflict (a very stupid one, IMO)

EDIT: I could resolve it myself (this one is very simple), but I am not sure what are the implications in your own code (you would not have that change, right?)

@Avasam

Avasam commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

I would after pulling back the branch. Which I have to do everytime when starting a new branch from master anyway.

@Avasam Avasam force-pushed the Avoid-bare-except branch from f28a8a3 to e7e70ee Compare June 19, 2026 14:01
Replaced bare `except:` clauses with `except Exception:`, preventing accidental suppression of system-exit signals (`KeyboardInterrupt`, `SystemExit`) during error handling. Which is almost never intended.
@Avasam Avasam force-pushed the Avoid-bare-except branch from e7e70ee to de94c86 Compare June 19, 2026 17:40
@Kalmat Kalmat merged commit 2bf709b into Kalmat:master Jun 21, 2026
77 of 78 checks passed
@Avasam Avasam deleted the Avoid-bare-except branch June 21, 2026 14:35
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