Skip to content

Commit 1622ee3

Browse files
committed
fixup! fixup! Improve ReadRemoteMemory error handling on macOS
1 parent 2ce8a96 commit 1622ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/remote_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ _Py_RemoteDebug_ReadRemoteMemory(proc_handle_t *handle, uintptr_t remote_address
10751075
"Process %d is no longer accessible (process terminated)",
10761076
handle->pid);
10771077
} else {
1078-
PyErr_Format(PyExc_PermissionError,
1078+
PyErr_Format(PyExc_ValueError,
10791079
"Invalid argument to mach_vm_read_overwrite for PID %d at "
10801080
"address 0x%lx (size %zu) - check memory permissions",
10811081
handle->pid, remote_address, len);

0 commit comments

Comments
 (0)