Skip to content

Releases: agronholm/exceptiongroup

1.2.2

12 Jul 22:25
Compare
Choose a tag to compare
  • Removed an assert in exceptiongroup._formatting that caused compatibility issues with Sentry (#123)

1.2.1

18 Apr 21:19
Compare
Choose a tag to compare
  • Updated the copying of __notes__ to match CPython behavior (PR by CF Bolz-Tereick)
  • Corrected the type annotation of the exception handler callback to accept a BaseExceptionGroup instead of BaseException
  • Fixed type errors on Python < 3.10 and the type annotation of suppress() (PR by John Litborn)

1.2.0

21 Nov 08:42
Compare
Choose a tag to compare
  • Added special monkeypatching if Apport has overridden sys.excepthook so it will format exception groups correctly (PR by John Litborn)
  • Added a backport of contextlib.suppress() from Python 3.12.1 which also handles suppressing exceptions inside exception groups
  • Fixed bare raise in a handler reraising the original naked exception rather than an exception group which is what is raised when you do a raise in an except* handler