Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3702 breaks printing an exception twice #3771

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Prevent exceptions from accumulating in REPL"
This reverts commit 0cd951f.

It is not a correct solution because it prevents printing the same exception twice.
  • Loading branch information
cwalther committed Nov 28, 2020
commit bde1c4166d08bd9530b1dc4dcf3bfff7f3e33bca
1 change: 0 additions & 1 deletion py/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ 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