Skip to content

Avoid bare except#103

Open
Avasam wants to merge 1 commit into
Kalmat:masterfrom
Avasam:Avoid-bare-except
Open

Avoid bare except#103
Avasam wants to merge 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.

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 f28a8a3 to e7e70ee Compare June 19, 2026 14:01
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