This library adheres to Semantic Versioning 2.0.
UNRELEASED
- Fixed
AttributeError: 'PatchedTracebackException' object has no attribute '__cause__'
on Python 3.10 (only) when a traceback is printed from an exception where an exception group is set as the cause (#33) - Fixed a loop in exception groups being rendered incorrectly (#35)
- Fixed the patched formatting functions (
format_exception()
etc.) not passing thecompact=True
flag on Python 3.10 like the original functions do
1.0.0rc9
- Added custom versions of several
traceback
functions that work with exception groups even if monkey patching was disabled or blocked
1.0.0rc8
- Don't monkey patch anything if
sys.excepthook
has been altered - Fixed formatting of
SyntaxError
in the monkey patchedTracebackException.format_exception_only()
method
1.0.0rc7
- BACKWARDS INCOMPATIBLE Changed
catch()
to not wrap an exception in an exception group if only one exception arrived atcatch()
and it was not matched with any handlers. This was to match the behavior ofexcept*
.
1.0.0rc6
- BACKWARDS INCOMPATIBLE Changed
catch()
to match the behavior ofexcept*
: each handler will be called only once per key in thehandlers
dictionary, and with an exception group as the argument. Handlers now also catch subclasses of the given exception types, just likeexcept*
.
1.0.0rc5
- Patch for
traceback.TracebackException.format_exception_only()
(PR by Zac Hatfield-Dodds)
1.0.0rc4
- Update PEP 678 support to use
.add_note()
and__notes__
(PR by Zac Hatfield-Dodds)
1.0.0rc3
- Added message about the number of sub-exceptions
1.0.0rc2
- Display and copy
__note__
(draft PEP 678) if available (PR by Zac Hatfield-Dodds)
1.0.0rc1
- Initial release