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 25b8de0 commit 3c805beCopy full SHA for 3c805be
1 file changed
psutil/arch/linux/users.c
@@ -163,6 +163,7 @@ psutil_users_systemd(PyObject *self, PyObject *args) {
163
Py_DECREF(py_retlist);
164
if (sessions_list)
165
free(sessions_list);
166
+ PyErr_SetString(PyExc_RuntimeError, "cannot get user information via systemd");
167
return NULL;
168
}
169
@@ -223,5 +224,6 @@ psutil_users_utmp(PyObject *self, PyObject *args) {
223
224
Py_XDECREF(py_tuple);
225
226
endutent();
227
+ PyErr_SetString(PyExc_RuntimeError, "cannot get user information via utmp");
228
229
0 commit comments