Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid bare except: in stdlib #125522

Open
iritkatriel opened this issue Oct 15, 2024 · 0 comments
Open

avoid bare except: in stdlib #125522

iritkatriel opened this issue Oct 15, 2024 · 0 comments
Labels
stdlib Python modules in the Lib dir

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Oct 15, 2024

Bare excepts are best avoided, this issue is to reduce their use in the stdlib. It is not the intention to blindly replace them by except BaseException:, or to religiously purge all of them, but just to review them and avoid where it's feasible to do so.

(see also #125514).

Linked PRs

@ZeroIntensity ZeroIntensity added the stdlib Python modules in the Lib dir label Oct 15, 2024
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Oct 15, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 19, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 19, 2024
iritkatriel added a commit that referenced this issue Oct 19, 2024
…125727)

gh-125522: Fix bare except in test_math.testTan (GH-125544)
(cherry picked from commit 4b421e8)

Co-authored-by: Irit Katriel <[email protected]>
iritkatriel added a commit that referenced this issue Oct 19, 2024
…125726)

gh-125522: Fix bare except in test_math.testTan (GH-125544)
(cherry picked from commit 4b421e8)

Co-authored-by: Irit Katriel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants