Ah, I see now. It would be nice to explicitly catch ``KeyError`` and ``AttributeError`` which also has the benefit of more apprioriate error messages