diff --git a/aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_problem_report_handler.py b/aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_problem_report_handler.py index 32c5e23e0a..7e9a6a82ab 100644 --- a/aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_problem_report_handler.py +++ b/aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_problem_report_handler.py @@ -29,7 +29,11 @@ async def handle(self, context: RequestContext, responder: BaseResponder): try: await pres_manager.receive_problem_report( context.message, - context.connection_record.connection_id, + ( + context.connection_record.connection_id + if context.connection_record is not None + else None + ), ) except (StorageError, StorageNotFoundError): self._logger.exception(