Skip to content

Commit 516a85a

Browse files
authored
Merge pull request #3702 from DavePutz/issue2056
Issue2056 - Prevent tracebacks from accumulating in REPL
2 parents f8eed1f + 0cd951f commit 516a85a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/obj.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void mp_obj_print_exception(const mp_print_t *print, mp_obj_t exc) {
125125
mp_printf(print, decompressed_block, block);
126126
}
127127
}
128+
mp_obj_exception_clear_traceback(exc);
128129
}
129130
}
130131
mp_obj_print_helper(print, exc, PRINT_EXC);

0 commit comments

Comments
 (0)