X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source4%2Flib%2Fldb%2Fpyldb.c;h=4d7a34c04f9721646d9bccc8bf3f6acc184e9916;hp=0dac61b8b70c17d76e6a57995a4b5710e6e8cc62;hb=c173c1beb1334fcdcf55e458430341f193482b2e;hpb=54ea150f364f9c39a9f0a2abe5a98e82df62845a diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 0dac61b8b70..4d7a34c04f9 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -957,7 +957,7 @@ static PyObject *py_ldb_msg_diff(PyLdbObject *self, PyObject *args) diff = ldb_msg_diff(PyLdb_AsLdbContext(self), PyLdbMessage_AsMessage(py_msg_old), PyLdbMessage_AsMessage(py_msg_new)); if (!diff) { - PyErr_SetString(PyExc_KeyError, "Failed to generate the Ldb Message diff"); + PyErr_SetString(PyExc_RuntimeError, "Failed to generate the Ldb Message diff"); return NULL; }