Prevent exceptions from accumulating in REPL
This commit is contained in:
parent
3abc671bbd
commit
0cd951fb73
1 changed files with 1 additions and 0 deletions
1
py/obj.c
1
py/obj.c
|
|
@ -125,6 +125,7 @@ void mp_obj_print_exception(const mp_print_t *print, mp_obj_t exc) {
|
|||
mp_printf(print, decompressed_block, block);
|
||||
}
|
||||
}
|
||||
mp_obj_exception_clear_traceback(exc);
|
||||
}
|
||||
}
|
||||
mp_obj_print_helper(print, exc, PRINT_EXC);
|
||||
|
|
|
|||
Loading…
Reference in a new issue