Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf9e966

Browse files
committed
Return the module at the end of its init function.
"import _msi" used to raise a SystemError.
1 parent 2ba198d commit bf9e966

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PC/_msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,5 +1065,5 @@ PyInit__msi(void)
10651065
if (!MSIError)
10661066
return NULL;
10671067
PyModule_AddObject(m, "MSIError", MSIError);
1068-
return NULL;
1068+
return m;
10691069
}

0 commit comments

Comments
 (0)