Comment 2 for bug 221318

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

> I'm not sure what the correct fix is really; fixing getUser to pretend a user who doesn't have a preferred email address
> doesn't exist would be simple enough, but I'm not really sure what the implications of not having a preferred email
> address are.

That's a fair assumption. It's basically because the user never registered on Launchpad (person record was auto-created from an import probably).

Once you registered with us, you always have a preferred email address.

An alternative would be to return NotFound for people who fail the is_valid_person check. (That catches the case of not having a preferred email address.)