So, if it's an `AttributeError` it's fine? i.e. if you get an `AttributeError` it means the configuration for ES hasn't been set up.

If so, when why keep the `KeyError`?