The list of valid attributes is much larger than what's listed here, of course.  It would be impractical and unmaintainable to list them all in an error message.  But you're right about the exception -- it should be a KeyError.

Recall that this only gets called if you request an attribute that the grid object *doesn't possess*.