Skip to content

Commit 43d0799

Browse files
committed
simplify
1 parent 44797c0 commit 43d0799

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rich/traceback.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,11 +601,8 @@ def __rich_console__(
601601
else:
602602
yield Text.assemble((f"{stack.exc_type}", "traceback.exc_type"))
603603

604-
if stack.notes:
605-
for note in stack.notes:
606-
yield Text.assemble(
607-
("[NOTE] ", "traceback.note"), highlighter(note)
608-
)
604+
for note in stack.notes:
605+
yield Text.assemble(("[NOTE] ", "traceback.note"), highlighter(note))
609606

610607
if not last:
611608
if stack.is_cause:

0 commit comments

Comments
 (0)