The fact that this is implemented as a hash lookup is an implementation detail, so don't let the KeyError bubble up.