1 parent 89f94b5 commit 0ae518fCopy full SHA for 0ae518f
1 file changed
py/obj.c
@@ -52,6 +52,7 @@ void mp_obj_print_exception(mp_obj_t exc) {
52
machine_uint_t n, *values;
53
mp_obj_exception_get_traceback(exc, &n, &values);
54
if (n > 0) {
55
+ assert(n % 3 == 0);
56
printf("Traceback (most recent call last):\n");
57
for (int i = n - 3; i >= 0; i -= 3) {
58
#if MICROPY_ENABLE_SOURCE_LINE
0 commit comments