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: