This commit is contained in:
blueloveTH 2024-08-22 14:05:15 +08:00
parent b99c3ed220
commit 53fc4f36df

View File

@ -235,7 +235,7 @@ bool py_exception(py_Type type, const char* fmt, ...) {
c11_sbuf__py_submit(&buf, message); c11_sbuf__py_submit(&buf, message);
bool ok = py_tpcall(type, 1, message); bool ok = py_tpcall(type, 1, message);
if(!ok) c11__abort("py_exception(): failed to create exception object"); if(!ok) return false;
py_pop(); py_pop();
return py_raise(py_retval()); return py_raise(py_retval());