Skip to content

Do not crash exceptiongroup backport#3099

Merged
antonpirker merged 1 commit intomasterfrom
antonpirker/fix-excepthook-crashing-exceptiongroup
May 23, 2024
Merged

Do not crash exceptiongroup backport#3099
antonpirker merged 1 commit intomasterfrom
antonpirker/fix-excepthook-crashing-exceptiongroup

Conversation

@antonpirker
Copy link
Copy Markdown
Contributor

By patchinng sys.excepthook and retaining the original name, exceptiongroup is crashing. This is why I changed it to patch exceptgroup and have a new name for the patched function.

Fixes #3097


General Notes

Thank you for contributing to sentry-python!

Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. Some tests (AWS Lambda) additionally require a maintainer to add a special label to run and will fail if the label is not present.

For maintainers

Sensitive test suites require maintainer review to ensure that tests do not compromise our secrets. This review must be repeated after any code revisions.

Before running sensitive test suites, please carefully check the PR. Then, apply the Trigger: tests using secrets label. The label will be removed after any code changes to enforce our policy requiring maintainers to review all code revisions before running sensitive tests.

@antonpirker antonpirker self-assigned this May 23, 2024
@antonpirker antonpirker requested a review from sentrivana May 23, 2024 09:41
Copy link
Copy Markdown
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@antonpirker antonpirker merged commit 45bf880 into master May 23, 2024
@antonpirker antonpirker deleted the antonpirker/fix-excepthook-crashing-exceptiongroup branch May 23, 2024 12:27
arjennienhuis pushed a commit to arjennienhuis/sentry-python that referenced this pull request Sep 30, 2024
…ame of the function) (getsentry#3099)

By patchinng sys.excepthook and retaining the original name, exceptiongroup is crashing. This is why I changed it to patch exceptgroup and have a new name for the patched function.
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.

sentry_sdk.init breaks import exceptiongroup in virtualenv activated with activate_this.py

2 participants