If changed the message for `KeyError` above than the change should be repeated here