fix crash when traceback object is supplied

This commit is contained in:
microDev 2021-08-09 22:53:23 +05:30 committed by GitHub
parent 9a932a5a48
commit 32ee06b293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ STATIC void traceback_exception_common(mp_print_t *print, mp_obj_t value, mp_obj
}
exc.traceback = MP_OBJ_TO_PTR(tb_obj);
} else {
exc.traceback = NULL;
exc.traceback = (mp_obj_traceback_t *)&mp_const_empty_traceback_obj;
}
shared_module_traceback_print_exception(&exc, print, limit);