KeyError is just a standin for 'whatever the renderer throws when it tries to reference an undeclared variable'.  Which is up to the renderer.