Skip to content

fix: correct non-compliant exception handling #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gh/ezyang/156/base
Choose a base branch
from

Conversation

ezyang
Copy link
Owner

@ezyang ezyang commented Mar 25, 2025

Stack from ghstack (oldest at bottom):

There are some try...except blocks in the codebase which are not in compliance with policy (do not suppress exceptions, raise to top level). codemcp/tools/git_blame.py has an example. Find and fix these.

606e12c  (Base revision)
62b9f5d  Remove try-except block and set check=True to allow exceptions to propagate to top level
c556b14  Remove try-except block and set check=True to allow exceptions to propagate to top level
8d7c8dd  Remove try-except block and set check=True to allow exceptions to propagate to top level
9721f29  Remove try-except block and set check=True to allow exceptions to propagate to top level
bda80ff  Remove try-except block to allow exceptions to propagate to top level
0a926f0  Remove inner try-except block to allow exceptions to propagate to top level
HEAD     Remove try-except block that suppresses exceptions and raise an error when commit fails

codemcp-id: 212-fix-correct-non-compliant-exception-handling

[ghstack-poisoned]
lion1991 pushed a commit to lion1991/codemcp that referenced this pull request Mar 25, 2025
There are some try...except blocks in the codebase which are not in compliance with policy (do not suppress exceptions, raise to top level). codemcp/tools/git_blame.py has an example. Find and fix these.

```git-revs
606e12c  (Base revision)
62b9f5d  Remove try-except block and set check=True to allow exceptions to propagate to top level
c556b14  Remove try-except block and set check=True to allow exceptions to propagate to top level
8d7c8dd  Remove try-except block and set check=True to allow exceptions to propagate to top level
9721f29  Remove try-except block and set check=True to allow exceptions to propagate to top level
bda80ff  Remove try-except block to allow exceptions to propagate to top level
0a926f0  Remove inner try-except block to allow exceptions to propagate to top level
HEAD     Remove try-except block that suppresses exceptions and raise an error when commit fails
```

codemcp-id: 212-fix-correct-non-compliant-exception-handling
ghstack-source-id: a8a894f
Pull-Request-resolved: ezyang#207
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