Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use PyErr_SetString().
  • Loading branch information
ericsnowcurrently committed Feb 13, 2024
commit c99fd01180ebb4dbdd156851d51ae0511bcbc176
4 changes: 2 additions & 2 deletions Python/crossinterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ _check_xidata(PyThreadState *tstate, _PyCrossInterpreterData *data)
// data->obj may be NULL, so we don't check it.

if (_PyCrossInterpreterData_INTERPID(data) < 0) {
_PyErr_SetString(tstate, PyExc_SystemError, "missing interp");
PyErr_SetString(PyExc_SystemError, "missing interp");
return -1;
}

if (data->new_object == NULL) {
_PyErr_SetString(tstate, PyExc_SystemError, "missing new_object func");
PyErr_SetString(PyExc_SystemError, "missing new_object func");
return -1;
}

Expand Down