Skip to content

Commit

Permalink
linting
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 e039d0c commit 9747844
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 @@ -193,7 +193,10 @@ async def get_signing_key(self, verkey: str) -> KeyInfo:
raise WalletNotFoundError("Unknown key: {}".format(verkey))
metadata = json.loads(key.metadata or "{}")
# FIXME implement key types
kid = key.tags["kid"] if "kid" in key.tags else None
try:
kid = key.tags["kid"] if "kid" in key.tags else None
except Exception:
kid = None
return KeyInfo(verkey=verkey, metadata=metadata, key_type=ED25519, kid=kid)

async def replace_signing_key_metadata(self, verkey: str, metadata: dict):
Expand Down

0 comments on commit 9747844

Please sign in to comment.