Prevent exceptions from accumulating in REPL

This commit is contained in:
root 2020-11-16 10:36:05 -06:00
parent 3abc671bbd
commit 0cd951fb73

View File

@ -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);