summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss_printerdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/python/py_spoolss_printerdata.c')
-rw-r--r--source3/python/py_spoolss_printerdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/python/py_spoolss_printerdata.c b/source3/python/py_spoolss_printerdata.c
index e89f985fef..ed9e1cbd82 100644
--- a/source3/python/py_spoolss_printerdata.c
+++ b/source3/python/py_spoolss_printerdata.c
@@ -321,7 +321,7 @@ PyObject *spoolss_hnd_enumprinterdataex(PyObject *self, PyObject *args, PyObject
return NULL;
if (!(ctr = TALLOC_ZERO_P(hnd->mem_ctx, REGVAL_CTR))) {
- PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
+ PyErr_SetString(spoolss_error, "talloc failed");
return NULL;
}