Commit f62befe4 authored by Moul's avatar Moul

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

parent 45e0602e
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment