Skip to content
Snippets Groups Projects
Commit f62befe4 authored by Moul's avatar Moul
Browse files

[fix] #189: id: handle identity_of()’s exceptions

parent 45e0602e
Branches
Tags
No related merge requests found
......@@ -159,11 +159,11 @@ def date_approximation(block_id, time_first_block, avgentime):
async def id_pubkey_correspondence(id_pubkey):
client = ClientInstance().client
if check_public_key(id_pubkey, False):
print(
"{} public key corresponds to identity: {}".format(
id_pubkey, await identity_of(id_pubkey)
)
)
try:
idty = await identity_of(id_pubkey)
print("{} public key corresponds to identity: {}".format(id_pubkey, idty["uid"]))
except:
message_exit("No matching identity")
else:
pubkeys = await wot_lookup(id_pubkey)
print("Public keys found matching '{}':\n".format(id_pubkey))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment