Skip to content

Commit

Permalink
Allow no connection record, prevent unhandled exception (#3068)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <lucasoneil@gmail.com>
  • Loading branch information
loneil committed Jun 25, 2024
1 parent f954e26 commit e949b02
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e949b02

Please sign in to comment.