summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-22 05:03:02 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:01 -0600
commit249cc734cebfef31320ec10b05dbfaaaa39682ca (patch)
treed9362b9316ea4bcbbaf561d2d062d01fe574a1d7 /source4/libcli
parent09f820f0bd1a9fc7ffd171418ceb0e19df8e2e43 (diff)
downloadsamba-249cc734cebfef31320ec10b05dbfaaaa39682ca.tar.gz
samba-249cc734cebfef31320ec10b05dbfaaaa39682ca.tar.bz2
samba-249cc734cebfef31320ec10b05dbfaaaa39682ca.zip
r26565: Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.
(This used to be commit 485d1fa3d17fe6cc7a0ecd80e8bac42d173bbb19)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/errors.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/util/errors.i b/source4/libcli/util/errors.i
index d51c9e0ded..8d97daf537 100644
--- a/source4/libcli/util/errors.i
+++ b/source4/libcli/util/errors.i
@@ -22,6 +22,7 @@
if (!W_ERROR_IS_OK($1)) {
PyObject *obj = Py_BuildValue("(i,s)", $1.v, win_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
+ SWIG_fail;
} else if ($result == NULL) {
$result = Py_None;
}
@@ -31,6 +32,7 @@
if (NT_STATUS_IS_ERR($1)) {
PyObject *obj = Py_BuildValue("(i,s)", $1.v, nt_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
+ SWIG_fail;
} else if ($result == NULL) {
$result = Py_None;
}