Merge pull request #3702 from DavePutz/issue2056

Issue2056 - Prevent tracebacks from accumulating in REPL
This commit is contained in:
Scott Shawcroft 2020-11-16 14:37:00 -08:00 committed by GitHub
commit 516a85aafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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