s4:pyldb - Wrong error type (found only after the push)
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 1 Oct 2009 12:02:59 +0000 (14:02 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 1 Oct 2009 12:02:59 +0000 (14:02 +0200)
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) {
 
        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;
        }
 
                return NULL;
        }