Skip to content

Commit

Permalink
Merge pull request #2723 from loneil/feature/allowConnectionlessProof…
Browse files Browse the repository at this point in the history
…ProblemReport

Remove exception on connectionless presentation problem report handler
  • Loading branch information
swcurran authored Jan 18, 2024
2 parents 0b80693 + 500b5f0 commit 7c93704
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 7c93704

Please sign in to comment.