-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stacktraces for custom exception handling (#3343)
* fix stacktraces for custom exception handling * reset _slate in __exit__ in any case * style: pre-commit fixes * properly use exception notes instead of exception chaining * simplify; KeyError subclassing not needed anymore with __notes__ usage * style: pre-commit fixes * better check for `exception.add_note` availability Co-authored-by: Jim Pivarski <[email protected]> * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jim Pivarski <[email protected]>
- Loading branch information
1 parent
b84d8bc
commit 564126d
Showing
1 changed file
with
19 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters