diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-06 10:39:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-06 15:50:16 +0200 |
commit | a370792cbc7285da90ef261d03efe781075ff71b (patch) | |
tree | cd1cd560a4ba8c798ea041ec0a93ab79c71312c6 /source4/dsdb | |
parent | 4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22 (diff) | |
download | samba-a370792cbc7285da90ef261d03efe781075ff71b.tar.gz samba-a370792cbc7285da90ef261d03efe781075ff71b.tar.bz2 samba-a370792cbc7285da90ef261d03efe781075ff71b.zip |
s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/
metze
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/pydsdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c index b9e1dd742c..355804943c 100644 --- a/source4/dsdb/pydsdb.c +++ b/source4/dsdb/pydsdb.c @@ -591,7 +591,7 @@ static PyObject *py_dsdb_DsReplicaAttribute(PyObject *self, PyObject *args) } werr = a->syntax->ldb_to_drsuapi(&syntax_ctx, a, el, attr, attr); - PyErr_WERROR_IS_ERR_RAISE(werr); + PyErr_WERROR_NOT_OK_RAISE(werr); ret = py_return_ndr_struct("samba.dcerpc.drsuapi", "DsReplicaAttribute", attr, attr); @@ -702,11 +702,11 @@ static PyObject *py_dsdb_normalise_attributes(PyObject *self, PyObject *args) } werr = a->syntax->ldb_to_drsuapi(&syntax_ctx, a, el, attr, attr); - PyErr_WERROR_IS_ERR_RAISE(werr); + PyErr_WERROR_NOT_OK_RAISE(werr); /* now convert back again */ werr = a->syntax->drsuapi_to_ldb(&syntax_ctx, a, attr, el, el); - PyErr_WERROR_IS_ERR_RAISE(werr); + PyErr_WERROR_NOT_OK_RAISE(werr); ret = py_return_ndr_struct("ldb", "MessageElement", el, el); @@ -860,7 +860,7 @@ static PyObject *py_dsdb_set_schema_from_ldif(PyObject *self, PyObject *args) PyErr_LDB_OR_RAISE(py_ldb, ldb); result = dsdb_set_schema_from_ldif(ldb, pf, df, dn); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -911,7 +911,7 @@ static PyObject *py_dsdb_write_prefixes_from_schema_to_ldb(PyObject *self, PyObj } result = dsdb_write_prefixes_from_schema_to_ldb(NULL, ldb, schema); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } |