8000 fix crash when traceback object is supplied · domdfcoding/circuitpython@32ee06b · GitHub
[go: up one dir, main page]

Skip to content

Commit 32ee06b

Browse files
authored
fix crash when traceback object is supplied
1 parent 9a932a5 commit 32ee06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/traceback/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ STATIC void traceback_exception_common(mp_print_t *print, mp_obj_t value, mp_obj
5757
}
5858
exc.traceback = MP_OBJ_TO_PTR(tb_obj);
5959
} else {
60-
exc.traceback = NULL;
60+
exc.traceback = (mp_obj_traceback_t *)&mp_const_empty_traceback_obj;
6161
}
6262

6363
shared_module_traceback_print_exception(&exc, print, limit);

0 commit comments

Comments
 (0)
0