This should catch KeyError. This happens if you do something like typo the mapping type name like this:

```
./manage.py esreindex --mapping_types=question_question
```

I do that all the time for some reason.

Anyhow, something should happen here or in the caller that makes sure the mapping types exist and if they don't, provides a list of the ones that do exist or something like that.