Skip to content

Suppress exception chaining when refusing to run on unverified sources - #3

Closed
Tet-9 wants to merge 1 commit into
ikeige-coder:mainfrom
Tet-9:fix/chain-sources-error
Closed

Tet-9 wants to merge 1 commit into
ikeige-coder:mainfrom
Tet-9:fix/chain-sources-error

Conversation

@Tet-9

@Tet-9 Tet-9 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Adds 'from None' to the SystemExit raised on SourcesError (ruff B904) so the output is the clean refusal message instead of a chained traceback.

@Tet-9
Tet-9 requested a review from ikeige-coder as a code owner October 5, 2026 08:06
@ikeige-coder

Copy link
Copy Markdown
Owner

Closing. This is a one-line lint change (ruff B904), and "from None" also drops the original cause from the traceback, which makes failures slightly harder to debug. Same note as #2: if ruff gets wired into CI, we can revisit it.

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