summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorChristian Walther <cwalther@gmx.ch>2020-11-28 23:09:05 +0100
committerChristian Walther <cwalther@gmx.ch>2020-11-28 23:10:17 +0100
commitbde1c4166d08bd9530b1dc4dcf3bfff7f3e33bca (patch)
tree604af48824638df5285787c9bf86c32838d91c0e /py
parentbd87201c4f5a326e0328648700e1929d876b8c36 (diff)
Revert "Prevent exceptions from accumulating in REPL"
This reverts commit 0cd951fb73198f5c3dd03ea0463382edac0d3d4d. It is not a correct solution because it prevents printing the same exception twice.
Diffstat (limited to 'py')
-rw-r--r--py/obj.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/obj.c b/py/obj.c
index d8e34746c..b6462641c 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -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);