Skip to content
Prev Previous commit
Next Next commit
Remove error string from macos impl to keep PermissionError
  • Loading branch information
sergey-miryanov committed Apr 25, 2025
commit 6466cf9f61fff26ed2af6b01b741a53e5d40ce6e
5 changes: 0 additions & 5 deletions Python/remote_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,6 @@ _Py_RemoteDebug_GetPyRuntimeAddress(proc_handle_t* handle)
// TODO: Differentiate between not found and error
PyErr_Clear();
address = search_map_for_section(handle, "PyRuntime", "python");
if (address == 0) {
PyObject *exc = PyErr_GetRaisedException();
PyErr_SetString(PyExc_RuntimeError, "Failed to find the PyRuntime section in the process.");
_PyErr_ChainExceptions1(exc);
}
}
#else
Py_UNREACHABLE();
Expand Down
Loading