PyErr_Print() always clears the error indicator, so there is no need
to call PyErr_Clear() immediately afterwards.
error:
PySys_WriteStderr("Failed calling sys.__interactivehook__\n");
PyErr_Print();
- PyErr_Clear();
}
Py_XDECREF(sys_path0);
PySys_WriteStderr("Failed checking if argv[0] is an import path entry\n");
PyErr_Print();
- PyErr_Clear();
return NULL;
}
PyErr_SetFromErrnoWithFilename(PyExc_OSError,
startup);
PyErr_Print();
- PyErr_Clear();
return;
}