diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-01-27 12:55:34 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-01-28 17:26:36 +1300 |
commit | 931a37061178b186db07b8a0b1377b7cc30a85e5 (patch) | |
tree | 77e08198266a73bb269c7e92a43452b26aae59ff /source4/param | |
parent | fa5a1cc4dd6210aedb35bef6e5c907070fc4ec4b (diff) | |
download | samba-931a37061178b186db07b8a0b1377b7cc30a85e5.tar.gz samba-931a37061178b186db07b8a0b1377b7cc30a85e5.tar.xz samba-931a37061178b186db07b8a0b1377b7cc30a85e5.zip |
param: fix incorrect file error handling in s4 pyparam
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/pyparam.c | 2 |
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; } |