Merge branch '2016-06-01-better-error-message' of https://github.com/Firstyear/pyldap

This commit is contained in:
Petr Viktorin 2016-06-14 12:13:29 +02:00
commit 37fd75aa12
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ Tuple_to_LDAPMod( PyObject* tup, int no_op )
goto error; goto error;
if (!PyBytes_Check(item)) { if (!PyBytes_Check(item)) {
PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO", PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO",
"expected a string in the list", item)); "expected a byte string in the list", item));
Py_DECREF(item); Py_DECREF(item);
goto error; goto error;
} }