Skip to content

Commit 18c9e02

Browse files
maxbachmannzooba
andauthored
Update Python/sysmodule.c
Co-authored-by: Steve Dower <[email protected]>
1 parent 5e5552b commit 18c9e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ static PyObject *
16431643
_sys_getwindowsversion_from_kernel32(void)
16441644
{
16451645
#ifndef MS_WINDOWS_DESKTOP
1646-
PyErr_SetFromWindowsErr(0);
1646+
PyErr_SetString(PyExc_OSError, "cannot read version info on this platform");
16471647
return NULL;
16481648
#else
16491649
HANDLE hKernel32;

0 commit comments

Comments
 (0)