From: Matthias Dieter Wallnöfer Date: Thu, 1 Oct 2009 12:02:59 +0000 (+0200) Subject: s4:pyldb - Wrong error type (found only after the push) X-Git-Tag: talloc-2.0.1~256 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=c173c1beb1334fcdcf55e458430341f193482b2e;hp=54ea150f364f9c39a9f0a2abe5a98e82df62845a s4:pyldb - Wrong error type (found only after the push) --- 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; }