Catch KeyError otherwise let exceptions propagate