Skip to content

Commit 1eeaaae

Browse files
Fix exceptions printing logic in run.py
1 parent 5e1fcf1 commit 1eeaaae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/idlelib/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def print_exc_group(typ, exc, tb, prefix=""):
282282
else:
283283
print(f"{prefix2} | <exception {type(sub).__name__} has printed>")
284284
need_print_underline = True
285+
need_print_underline *= (i == len(exc.exceptions))
285286
if need_print_underline:
286287
print(f"{prefix2} +------------------------------------", file=efile)
287288

0 commit comments

Comments
 (0)