My gpg --lisk-keys lists a revoked key after my current key.
The current implementation for isvalid:
for line in out.split('\n'):
record = line.split(':')
if record[0] == 'pub':
trust = record[1]
if trust not in trusted:
return False
only checks the trust level of the last found key, so in my setup I'm getting the "invalid user ID" error.
It looks like LBYL to me: code hard to implement that miss some cases. Should the EAFP style be used instead by just trying to access the password store, and catching an exception as needed? I haven't read the project history I bet this code is here for a reason.
My
gpg --lisk-keyslists a revoked key after my current key.The current implementation for
isvalid:only checks the trust level of the last found key, so in my setup I'm getting the "invalid user ID" error.
It looks like LBYL to me: code hard to implement that miss some cases. Should the EAFP style be used instead by just trying to access the password store, and catching an exception as needed? I haven't read the project history I bet this code is here for a reason.