1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-03 04:23:50 +03:00

Set exception object when enumjobs returns non-zero NT status.

This commit is contained in:
Tim Potter
-
parent cb4bfd39eb
commit b1818eb375

View File

@@ -52,8 +52,10 @@ PyObject *spoolss_hnd_enumjobs(PyObject *self, PyObject *args, PyObject *kw)
result = Py_None;
if (!W_ERROR_IS_OK(werror))
if (!W_ERROR_IS_OK(werror)) {
PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
goto done;
}
result = PyList_New(num_jobs);