Skip to content

Commit bec9651

Browse files
committed
Removed problematic assert that caused compatibility issues
Fixes #123.
1 parent f3f0ff6 commit bec9651

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES.rst

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Version history
33

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

6+
**UNRELEASED**
7+
8+
- Removed an ``assert`` in ``exceptiongroup._formatting`` that caused compatibility
9+
issues with Sentry (`#123 <https://github.com/agronholm/exceptiongroup/issues/123>`_)
10+
611
**1.2.1**
712

813
- Updated the copying of ``__notes__`` to match CPython behavior (PR by CF Bolz-Tereick)

src/exceptiongroup/_formatting.py

-2
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,6 @@ def format_exception_only(self):
391391

392392
import apport_python_hook
393393

394-
assert sys.excepthook is apport_python_hook.apport_excepthook
395-
396394
# monkeypatch the sys module that apport has imported
397395
fake_sys = ModuleType("exceptiongroup_fake_sys")
398396
fake_sys.__dict__.update(sys.__dict__)

0 commit comments

Comments
 (0)