mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
gh-115503: Fix run_presite
error handling (#115504)
This commit is contained in:
parent
321d13fd2b
commit
20eaf4d5df
@ -1109,7 +1109,6 @@ run_presite(PyThreadState *tstate)
|
||||
);
|
||||
if (presite_modname == NULL) {
|
||||
fprintf(stderr, "Could not convert pre-site module name to unicode\n");
|
||||
Py_DECREF(presite_modname);
|
||||
}
|
||||
else {
|
||||
PyObject *presite = PyImport_Import(presite_modname);
|
||||
|
Loading…
Reference in New Issue
Block a user