Note that `ClaimSSHKeyForm` is used when adding keys, while this is an issue with deletion. That said, `DeleteSSHKeyForm` gets its choices directly from LP (`get_lp_ssh_keys()`). So, I believe LP itself might have "invalid" ssh keys in its storage. Is that possible?
OTOH, I've proposed a branch with an improved cleanup for *new* ssh keys.
Note that `ClaimSSHKeyForm` is used when adding keys, while this is an issue with deletion. That said, `DeleteSSHKeyForm` gets its choices directly from LP (`get_lp_ ssh_keys( )`). So, I believe LP itself might have "invalid" ssh keys in its storage. Is that possible?
OTOH, I've proposed a branch with an improved cleanup for *new* ssh keys.