Skip to content

Commit

Permalink
Fix the check for vc_di proof
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
  • Loading branch information
ianco authored and darshilnb committed Sep 5, 2024
1 parent 4831cd6 commit 39ea6a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 39ea6a6

Please sign in to comment.