Python default dictionaries raise KeyError(key_that_was_not_found). TDB raises KeyError('No such TDB entry'). This is less helpful, as the interesting knowledge of what the key was is lost. TDB should raise KeyError(key_that_was_not_found) too.
Created attachment 11267 [details] KeyError patch
Patch was pushed to master some time ago.