diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_spoolss_jobs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/python/py_spoolss_jobs.c b/source3/python/py_spoolss_jobs.c index 29475f9e3b..856e6252ea 100644 --- a/source3/python/py_spoolss_jobs.c +++ b/source3/python/py_spoolss_jobs.c @@ -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); |