Skip to content

Commit

Permalink
Removed problematic assert that caused compatibility issues
Browse files Browse the repository at this point in the history
Fixes #123.
  • Loading branch information
agronholm committed Jul 12, 2024
1 parent f3f0ff6 commit bec9651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Version history

This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.

**UNRELEASED**

- Removed an ``assert`` in ``exceptiongroup._formatting`` that caused compatibility
issues with Sentry (`#123 <https://github.com/agronholm/exceptiongroup/issues/123>`_)

**1.2.1**

- Updated the copying of ``__notes__`` to match CPython behavior (PR by CF Bolz-Tereick)
Expand Down
2 changes: 0 additions & 2 deletions src/exceptiongroup/_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@ def format_exception_only(self):

import apport_python_hook

assert sys.excepthook is apport_python_hook.apport_excepthook

# monkeypatch the sys module that apport has imported
fake_sys = ModuleType("exceptiongroup_fake_sys")
fake_sys.__dict__.update(sys.__dict__)
Expand Down

0 comments on commit bec9651

Please sign in to comment.