Skip to content

Commit

Permalink
Merge pull request #3702 from DavePutz/issue2056
Browse files Browse the repository at this point in the history
Issue2056 - Prevent tracebacks from accumulating in REPL
  • Loading branch information
tannewt authored Nov 16, 2020
2 parents f8eed1f + 0cd951f commit 516a85a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 516a85a

Please sign in to comment.