Compare commits

...

2 Commits

Author SHA1 Message Date
killcerr
eaa2e6d6f9
Merge 2f776ae05a0f378e8f65b90a4e6d8ba622801dd5 into 2fa14c588463bf576bce766f6ae996e7e8e10271 2026-01-31 22:40:20 +00:00
killcerr
2f776ae05a fix #440 2026-02-01 06:40:09 +08:00

View File

@ -1169,9 +1169,12 @@ __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();
}
py_newbool(TOP(), ok);
DISPATCH();
}
case OP_HANDLE_EXCEPTION: {
FrameExcInfo* info = Frame__top_exc_info(frame);