Skip to content

fix: narrow bare except Exception in VS Code settings merge - #3844

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

fix: narrow bare except Exception in VS Code settings merge#3844
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/utils-narrow-exception

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Summary

Narrow bare except Exception to specific exception types to let programming errors propagate.

Changes

  • _utils.py: Replace except Exception with (OSError, ValueError, KeyError)

Replace overly broad except Exception with (OSError, ValueError, KeyError)
to let programming errors like TypeError or AttributeError propagate while
still handling expected I/O and parse errors gracefully.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 29, 2026 08:18
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