Skip to content

Commit 5337df3

Browse files
authored
Rewrite news
1 parent 8223c0a commit 5337df3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
Prevent attributes of exceptions or exception groups that evaluate as falsey (namely, when their ``__bool__`` method returns ``False`` or their ``__len__`` method returns 0) from being ignored by the :class:`traceback.TracebackException`.
1+
The class:`traceback.TracebackException` must include the `__context__`, `__cause__` attributes
2+
from falsey Exception, and the `exceptions` attribute from falsey ExceptionGroup' in its render.
3+
For remind: ``x`` is falsey if ``len(x)`` returns 0 or ``bool(x)`` returns False.

0 commit comments

Comments
 (0)