This commit is contained in:
killcerr 2026-02-01 06:40:09 +08:00
parent 5ab8381471
commit 2f776ae05a

View File

@ -1169,10 +1169,13 @@ __NEXT_STEP:
if(has_invalid) {
py_clearexc(NULL);
TypeError("catching classes that do not inherit from BaseException is not allowed");
}
c11_vector__pop(&frame->exc_stack);
goto __ERROR_RE_RAISE;
} else {
py_newbool(TOP(), ok);
DISPATCH();
}
}
case OP_HANDLE_EXCEPTION: {
FrameExcInfo* info = Frame__top_exc_info(frame);
assert(info != NULL && py_isnil(&info->exc));