lib-pyldb: Throw exception when we can't create MessageElement object
commit4d25dfd611e7786a17975fcaed039be971bac7da
authorKamen Mazdrashki <kamenim@samba.org>
Mon, 10 Nov 2014 21:59:07 +0000 (10 22:59 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Nov 2014 04:04:07 +0000 (25 05:04 +0100)
tree93ff52102c48134f18290c2f1c7a383e9e469813
parent18f879b857c174371a9fe27722c70051ed68ed64
lib-pyldb: Throw exception when we can't create MessageElement object

At the moment we return an error, but no exception and it is
hard to instantly see what the problem is from Python

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c