From 98d7ede78480d7daa1e5305550c6f0ec5a431bd0 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Tue, 14 May 2024 10:50:43 +0000 Subject: [PATCH] Fix: Convert issue credential record model to dict before accessing credential field Signed-off-by: George J Padayatti --- eudi_wallet/ebsi/entry_points/server/routes/v2/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eudi_wallet/ebsi/entry_points/server/routes/v2/config.py b/eudi_wallet/ebsi/entry_points/server/routes/v2/config.py index 59b9978..f66925a 100644 --- a/eudi_wallet/ebsi/entry_points/server/routes/v2/config.py +++ b/eudi_wallet/ebsi/entry_points/server/routes/v2/config.py @@ -766,7 +766,7 @@ async def handle_config_get_all_credential_offers( [ { **credential_offer_entity.to_dict(), - "credentialLabel": credential_offer_entity.get("credential", {}) + "credentialLabel": credential_offer_entity.to_dict().get("credential", {}) .get("type", [])[-1] .removesuffix("SdJwt"), }