Skip to content

Commit

Permalink
Remove exception on connectionless
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Jan 17, 2024
1 parent 0b80693 commit 500b5f0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 500b5f0

Please sign in to comment.