From: Douglas Bagnall Date: Thu, 14 Mar 2024 23:12:26 +0000 (+1300) Subject: pyldb_utils: pyldb_Object_AsDn() sets TypeError more often X-Git-Tag: tdb-1.4.11~1403 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=461192fdbeaafcd9d0af083d220afff3af2bdef7;p=thirdparty%2Fsamba.git pyldb_utils: pyldb_Object_AsDn() sets TypeError more often Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/pyldb_util.c b/lib/ldb/pyldb_util.c index d1c5fad2b56..9d7086cf294 100644 --- a/lib/ldb/pyldb_util.c +++ b/lib/ldb/pyldb_util.c @@ -130,6 +130,7 @@ bool pyldb_Object_AsDn(TALLOC_CTX *mem_ctx, PyObject *object, PyLdb_Dn_Type = PyLdb_GetPyType("Dn"); if (PyLdb_Dn_Type == NULL) { + PyErr_SetString(PyExc_TypeError, "Expected DN"); return false; }