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.