Skip to content

Commit

Permalink
remove assertion catches
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Oct 1, 2024
1 parent c20afb1 commit aa3f802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def verify_proof(self, secured_document: dict):
if not verified:
raise CryptosuiteError("Invalid signature.")

except (AssertionError, CryptosuiteError) as err:
except CryptosuiteError as err:
problem_detail = ProblemDetails.deserialize(
PROBLEM_DETAILS["PROOF_VERIFICATION_ERROR"]
)
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/vc/data_integrity/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def verify_proof(self, secured_document: dict):
input_document["proof"] = proof
verification_result = await suite.verify_proof(input_document)

except (AssertionError, DataIntegrityManagerError, DIDNotFound) as err:
except (DataIntegrityManagerError, DIDNotFound) as err:
problem_detail = ProblemDetails.deserialize(
PROBLEM_DETAILS["PROOF_VERIFICATION_ERROR"]
)
Expand Down

0 comments on commit aa3f802

Please sign in to comment.