Skip to content

Commit 0cd951f

Browse files
committed
Prevent exceptions from accumulating in REPL
1 parent 3abc671 commit 0cd951f

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)