summaryrefslogtreecommitdiff
path: root/source4/param/pyparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/pyparam.c')
-rw-r--r--source4/param/pyparam.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index 303a2096c62..345cd9d44c4 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -279,7 +279,6 @@ static PyObject *py_lp_dump(PyObject *self, PyObject *args)
f = PyFile_AsFile(py_stream);
if (f == NULL) {
- PyErr_SetString(PyExc_TypeError, "Not a file stream");
return NULL;
}
@@ -457,7 +456,6 @@ static PyObject *py_lp_service_dump(PyObject *self, PyObject *args)
f = PyFile_AsFile(py_stream);
if (f == NULL) {
- PyErr_SetString(PyExc_TypeError, "Not a file stream");
return NULL;
}