Skip to content

fix: narrow exception in extension registration fallback from Exception to specific types - #3919

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/presets-registration-narrow-exception
Open

fix: narrow exception in extension registration fallback from Exception to specific types#3919
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/presets-registration-narrow-exception

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

Bare except Exception silently swallows all errors in extension registration.

Fix

Narrow to (TypeError, ValueError, KeyError) which are the realistic failure modes.

Testing

  • Verified extension registration works correctly
  • Verified fallback to generic path-based registration works

…on to specific types

Bare 'except Exception' silently swallows all errors. Narrow to
(TypeError, ValueError, KeyError) which are the realistic failure
modes in extension registration.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 31, 2026 14:44
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