tdb python binding: raise KeyError(key) when the key doesn't exist
commitb86df6e47c85fd50125cc99bce6dba0e27650840
authorAurelien Aptel <aaptel@suse.com>
Thu, 16 Jul 2015 14:55:28 +0000 (16 16:55 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 21 Jul 2015 17:04:15 +0000 (21 19:04 +0200)
treefe15bc909cbf153064ff205ac303f08e14126b9f
parent075799ac173dec49e1a669528eb85265962652d2
tdb python binding: raise KeyError(key) when the key doesn't exist

This change makes tdb dicts more consistent with Python dicts.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7416

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/pytdb.c