- Fixed the
repr()of exception groups being affected by mutation of the original exception sequence after construction (#154) - Fixed traceback limits being ignored for exceptions nested inside exception groups
- Fixed
catch()overwriting earlier handlers when distinct mapping keys normalize to the same exception types (#164) - Fixed
catch()flattening exception groups raised by handlers when they were not the original matched group. Such groups are now propagated as-is, like with nativeexcept*, so code that previously received the bare exception(s) from such a group will now receive the exception group itself (#157) - Fixed
catch()overwriting the__cause__and__context__of exceptions propagating out of it, to match nativeexcept*. Exceptions raised by handlers now keep the chaining they were raised with (e.g.raise ... from None) instead of inheriting the original group's__cause__, and re-raised exceptions now keep the original group's__context__(#157) - Fixed
catch()dropping exceptions that no handler matched when a handler raises an exception. Such exceptions are now propagated along with the handler's exception, like with nativeexcept*, so code that previously received only the handler's exception will now receive an exception group containing both (#161) - Fixed the
subgroup()method returning the original group rather than a newly derived group when all the nested exceptions matched the condition - Fixed
catch()overwriting handler exception chaining when the original exception is not an exception group (#167) - Fixed
subgroup()andsplit()taking any class as the condition, sosubgroup(bool)matched every exception instead of raisingTypeErrorthe way native exception groups do (#170) - Fixed
EXCEPTIONGROUP_NO_PATCH=1not preventing the monkey patching on Python < 3.11 (#171) - Fixed
subgroup()andsplit()not checking the return value ofderive(), so a subclass with a broken override made them raiseAttributeErroror return something that wasn't an exception group at all. They now raiseTypeError, like native exception groups do (#169)