Handle AttributeNotFound exception correctly.