Skip to content

Commit

Permalink
add kid exception
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Sep 26, 2024
1 parent 27ead35 commit dcd6294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aries_cloudagent/wallet/askar.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ async def get_signing_key(self, verkey: str) -> KeyInfo:
raise WalletNotFoundError("Unknown key: {}".format(verkey))
metadata = json.loads(key.metadata or "{}")

kid = key.tags.get("kid")
try:
kid = key.tags.get("kid")
except:
kid = None

# FIXME implement key types
return KeyInfo(verkey=verkey, metadata=metadata, key_type=ED25519, kid=kid)
Expand Down

0 comments on commit dcd6294

Please sign in to comment.