diff --git a/aries_cloudagent/vc/data_integrity/cryptosuites/eddsa_jcs_2022.py b/aries_cloudagent/vc/data_integrity/cryptosuites/eddsa_jcs_2022.py index 4366be488a..69daaa9334 100644 --- a/aries_cloudagent/vc/data_integrity/cryptosuites/eddsa_jcs_2022.py +++ b/aries_cloudagent/vc/data_integrity/cryptosuites/eddsa_jcs_2022.py @@ -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"] ) diff --git a/aries_cloudagent/vc/data_integrity/manager.py b/aries_cloudagent/vc/data_integrity/manager.py index 7555e38e6f..401aafaab2 100644 --- a/aries_cloudagent/vc/data_integrity/manager.py +++ b/aries_cloudagent/vc/data_integrity/manager.py @@ -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"] )