Skip to content

fix: replace 1 bare except clauses with except Exception#636

Closed
haosenwang1018 wants to merge 1 commit intoNVIDIA:masterfrom
haosenwang1018:fix/bare-excepts
Closed

fix: replace 1 bare except clauses with except Exception#636
haosenwang1018 wants to merge 1 commit intoNVIDIA:masterfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

What

Replace 1 bare except: clauses with except Exception:.

Why

Bare except: catches BaseException, including KeyboardInterrupt and SystemExit, which can prevent clean process shutdown and mask critical errors.

Bare `except:` catches BaseException including KeyboardInterrupt and
SystemExit. Replaced 1 instances with `except Exception:`.
@haosenwang1018
Copy link
Author

CI failures. Closing for rework.

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.

1 participant