We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9048c49 commit ac14632Copy full SHA for ac14632
PC/python_uwp.cpp
@@ -166,12 +166,12 @@ wmain(int argc, wchar_t **argv)
166
PyPreConfig_InitPythonConfig(&preconfig);
167
status = Py_PreInitializeFromArgs(&preconfig, argc, argv);
168
if (PyStatus_Exception(status)) {
169
- goto fail;
+ goto fail_without_config;
170
}
171
172
status = PyConfig_InitPythonConfig(&config);
173
174
175
176
177
status = PyConfig_SetArgv(&config, argc, argv);
@@ -233,6 +233,7 @@ wmain(int argc, wchar_t **argv)
233
234
fail:
235
PyConfig_Clear(&config);
236
+fail_without_config:
237
if (PyStatus_IsExit(status)) {
238
return status.exitcode;
239
0 commit comments