s4:pyldb - Wrong error type (found only after the push)
[ira/wip.git] / source4 / lib / ldb / pyldb.c
index 0dac61b8b70c17d76e6a57995a4b5710e6e8cc62..4d7a34c04f9721646d9bccc8bf3f6acc184e9916 100644 (file)
@@ -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;
        }