Skip to content

fix: replace 17 bare except clauses with except Exception#15435

Closed
haosenwang1018 wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
haosenwang1018:fix/bare-excepts
Closed

fix: replace 17 bare except clauses with except Exception#15435
haosenwang1018 wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link
Copy Markdown

What

Replace 17 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. Using except Exception: catches all application-level errors while allowing system-level exceptions to propagate correctly.

@github-actions github-actions Bot added the ASR label Feb 25, 2026
Signed-off-by: haosenwang1018 <haosenwang1018@users.noreply.github.com>
@haosenwang1018
Copy link
Copy Markdown
Author

CI failures. Closing for rework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants