pydsdb_dns: Use TypeError not LdbError for mismatched types
authorAndrew Bartlett <abartlet@samba.org>
Mon, 10 Apr 2017 04:06:13 +0000 (16:06 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Jun 2017 19:48:20 +0000 (21:48 +0200)
commitf5e945c810b5e453b699d4e796cfb6790c442a17
tree3313119c5141f629168c0a7ea5a4d39a121b7a20
parentfa3c026983d597769f600e50b7e2b0e8772f3fd6
pydsdb_dns: Use TypeError not LdbError for mismatched types

This avoids the samba-tool command handling code blowing up when trying to parse an LdbError

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dns_server/pydns.c