From 500b5f099f5d9e13d9f3799c75dbc1d94c657a51 Mon Sep 17 00:00:00 2001 From: Lucas ONeil Date: Tue, 16 Jan 2024 15:10:18 -0800 Subject: [PATCH] Remove exception on connectionless Signed-off-by: Lucas ONeil --- .../v1_0/handlers/presentation_problem_report_handler.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_problem_report_handler.py b/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_problem_report_handler.py index 56ca1a6848..8e84ffec06 100644 --- a/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_problem_report_handler.py +++ b/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_problem_report_handler.py @@ -30,16 +30,14 @@ async def handle(self, context: RequestContext, responder: BaseResponder): raise HandlerException( "Connection used for presentation problem report not ready" ) - elif not context.connection_record: - raise HandlerException( - "Connectionless not supported for presentation problem report" - ) presentation_manager = PresentationManager(context.profile) try: await presentation_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(