From 0f5b20c6de64fcc4a602c12e925cb8b0c701e1ef Mon Sep 17 00:00:00 2001 From: Ian Costanzo Date: Wed, 17 Jul 2024 11:15:12 -0700 Subject: [PATCH] Fix the check for vc_di proof Signed-off-by: Ian Costanzo --- .../protocols/present_proof/v2_0/formats/dif/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries_cloudagent/protocols/present_proof/v2_0/formats/dif/handler.py b/aries_cloudagent/protocols/present_proof/v2_0/formats/dif/handler.py index 316a2728c9..5bc0d714e4 100644 --- a/aries_cloudagent/protocols/present_proof/v2_0/formats/dif/handler.py +++ b/aries_cloudagent/protocols/present_proof/v2_0/formats/dif/handler.py @@ -492,7 +492,7 @@ async def verify_pres(self, pres_ex_record: V20PresExRecord) -> V20PresExRecord: def _get_type_manager_options(self, dif_proof: dict, pres_request: dict): """Get the type of manager and options based on the proof type.""" - if dif_proof["proof"]["type"] == "DataIntegrityProof": + if dif_proof.get("proof") and dif_proof["proof"]["type"] == "DataIntegrityProof": manager = VcDiManager(self.profile) options = pres_request else: